我正在尝试运行此 SQL:
$sql="SELECT LEAST(".implode(',',$column_list).") as num FROM callplandata WHERE num IS NOT 0 ";
错误:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0' at line 1
我也试过
$sql="SELECT LEAST(".implode(',',$column_list).") as num FROM callplandata WHERE num IS NOT NULL ";
错误:Unknown column 'num' in 'where clause'
但我每一个都收到上述错误。
我怎样才能解决这个问题 - 我试图显示不是 0 的值