【发布时间】:2017-05-03 02:54:58
【问题描述】:
我在 MySql 上有这个查询:
选择身份证,( 选择 IFNULL(SEC_TO_TIME(SUM(TIME_TO_SEC(TIMEDIFF(tfo.a, tfo.da)))),'00:00') 作为速度 从 ( 选择不同的 gg_settimana,id_fascia FROM operatori_piano WHERE id_istruttore = o.id ) 作为 sa 左加入 tab_fasce_orarie 作为 tfo ON tfo.id = sa.id_fascia ) 作为节奏 FROM operatori as o 其中tipo = 2 AND attivo = 1Mysql 返回此错误:
错误代码:1054。“where 子句”中的未知列“o.id”我尝试了很多组合,但都不起作用。 需要您的帮助,非常感谢!
【问题讨论】:
标签: mysql