1.不为空spa
select * from table where id <> "";blog
select * from table where id != "";table
2.为空select
select * from table where id ="";gc
select * from table where isNull(id);tab
具体状况具体分析,若是字段是char或者varchar类型的,使用id=""能够的;co
若是字段是int类型的,使用isNull会好些。ab