执行空值记录
我正在尝试执行表 NewTimeAttendance
...TotalTime
数据类型中具有 TotalTime
null
值的记录 < code>nchar(10)
select * from newtimeattendance where TotalTime = 'NULL'
....什么都没有
select * from newtimeattendance where TotalTime = 'null'
....什么都没有
select * from newtimeattendance where TotalTime = 'Null'
....
select * from newtimeattendance where TotalTime = null
什么都没有 ....
select * from newtimeattendance where TotalTime = Null
什么都没有 ....什么都
select * from newtimeattendance where TotalTime = NULL
没有
当我选择整个表格时我可以看到有一些 NULL
TotalTime
值..!!
这是一个小的选择语句..为什么它不起作用?有没有一种方法(特殊方法)来执行 nchar
类型的“NULL”?!
提前致谢
i am trying to execute the records that have TotalTime
null
value from the table NewTimeAttendance
...TotalTime
datatype nchar(10)
select * from newtimeattendance where TotalTime = 'NULL'
....nothing
select * from newtimeattendance where TotalTime = 'null'
....nothing
select * from newtimeattendance where TotalTime = 'Null'
....nothing
select * from newtimeattendance where TotalTime = null
....nothing
select * from newtimeattendance where TotalTime = Null
....nothing
select * from newtimeattendance where TotalTime = NULL
....nothing
when i select the whole table i can see that there is some NULL
TotalTime
values..!!
it is small select statment ..why doesn't it work ? is there a way (special way ) to execute the 'NULL' with nchar
type ?!
thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要使用 IS NULL
MySQL 文档有一些关于处理 NULL 值的好信息:
http://dev.mysql.com/doc/ refman/5.0/en/working-with-null.html
You need to use
IS NULL
The MySQL doc has some good information on dealing with NULL values:
http://dev.mysql.com/doc/refman/5.0/en/working-with-null.html