Mysql查找字段空、不为空的方法

不为空


select * from table where id <> ''
select * from table where id !=''

为空


select * from table where id=''
select * from table where ISNULL(id)

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注




Enter Captcha Here :