原SQL语句:
select
id, date, batch, worm_group, hatch_box_number, hatch_end_time, fhhlkfhw_weight
from h
where hatch_end_time is null
and fhhlkfhw_weight is null
and id in (select max(<
解决MySQL报错:Operand should contain 1 column(s)
在使用MySQL时遇到错误提示'Operand should contain 1 column(s)',原因是SQL语句中的GROUP BY子句使用了错误的括号。通过移除GROUP BY后的括号成功解决了问题。
原SQL语句:
select
id, date, batch, worm_group, hatch_box_number, hatch_end_time, fhhlkfhw_weight
from h
where hatch_end_time is null
and fhhlkfhw_weight is null
and id in (select max(<