All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
SQL语句查询是否为空 =null及null_[SQL Server教程]

Writer: 归海一刀 Article type: Programming skills(编程技巧) Time: 2014/2/3 6:40:40 Browse times: 431 Comment times: 0

SQL语句查询是否为空 =null及null_[SQL Server教程]


Head photo

Go homepage
Upload pictures
Write articles

SQL语句查询是否为空 =null及null_[SQL Server教程] a b c d
980515 精頂企業有限公司 簡家豪 NULL
980514 全欣木業有限公司 NULL 123
980514 迅億科技股份有限公司 簡逢浚 NULL
980515 聖越國際企業有限公司 NULL 111

表结构如上所示,要查询C列为空的记录的SQL语句不是select * from table where c=null; 或者 select * from table where c=’’; 而应当是 select * from table where c is null; 相反地要查询不为空的则应当是 select * from talbe where c<>’’; 或者 select * from table where c is not null; 注意:不是not is null哦。




There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.