The reason for this is:
There is a problem when writing the where statement:
eg: select datatype from t_loop where address = 2/2/41; 框架中where('address='.$address)
This query is empty,
select datatype from t_loop where address = '2/2/41'; 框架中where(['address'=>$address])
This query has a value
The above is the detailed content of How to solve the problem that the where condition in the query database has fields, but the query is empty. For more information, please follow other related articles on the PHP Chinese website!