哈雷路亚.哈普提森:我的问题

来源:百度文库 编辑:高考问答 时间:2024/05/04 22:08:19
String sql3="select * from room where commit is not null order by id DESC limit 2";
请问我这个句子有错误吗?如果没有错误,为什么选择出来的结果仍然是“commit”为空呢?

is not mull 是不为Null
''是不为空
一般允许为空的字段在没使用时是Null
但是添加过数据又删除的为''
所以加个commit<>''t条件