Mysql query field is not empty method: 1. Use the "select * from table_name where id "";" statement to query; 2. Use "select * from table_name where id != "" ;" statement query.
The operating environment of this tutorial: windows10 system, mysql8.0.22 version, Dell G3 computer.
1. Query that the fields are not empty
select * from table where id <> ""; select * from table where id != "";
select * from table where id =""; select * from table where isNull(id);
The above is the detailed content of How to query fields that are not empty in mysql. For more information, please follow other related articles on the PHP Chinese website!