php查询表字段是否为空怎么写语句?
答案:3 悬赏:0 手机版
解决时间 2021-11-13 13:53
- 提问者网友:斑駁影
- 2021-11-13 10:33
php查询表字段是否为空怎么写语句?
最佳答案
- 五星知识达人网友:几近狂妄
- 2021-11-13 11:55
空有2种,一种是null,一种是什么都没有,
个人认为,这两种情况都需要判断
select * from `member` whre `uid` = 888 and `password` is null and `password` = ''
个人认为,这两种情况都需要判断
select * from `member` whre `uid` = 888 and `password` is null and `password` = ''
全部回答
- 1楼网友:鸽屿
- 2021-11-13 14:24
sql="select * from member where password=null and uid='888'";
- 2楼网友:有你哪都是故乡
- 2021-11-13 13:21
SELECt * from `member` WHERe uid=888 AND password IS NULL
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯