Heim >Backend-Entwicklung >PHP-Tutorial >sql错误?SELECT COUNT(id) AS SP_COUNTER FROM
<code>SELECT COUNT(id) AS SP_COUNTER FROM fanwe_supplier_location WHERE is_effect=1 and city_id=18 </code>
这行sql语句写错了吗?
<code>SELECT COUNT(id) AS SP_COUNTER FROM fanwe_supplier_location WHERE is_effect=1 and city_id=18 </code>
这行sql语句写错了吗?
看不出,排查
1、表,字段名是否错了呢?
2、是否有不可见字符。