sql server 2008,判断某列是否为空或者null
2016-07-18 21:19
302 查看
加判断,如下:
select ID,IndustryName from tbl_Industry where IndustryX is null and IndustryY is null or IndustryX ='' and IndustryY = ''
select ID,IndustryName from tbl_Industry where IndustryX is null and IndustryY is null or IndustryX ='' and IndustryY = ''
相关文章推荐
- redis源码分析-dict(字典结构)
- LIMIT优化
- 配置mysql replication出错记录
- SQL Developer工具如何转译&(input parameter)符号
- mysql权限管理
- mysql中文字符集问题
- 数据库分库分表
- 消息队列mq的原理及实现方法
- select case when if 的一些用法
- MySQL外键的作用和创建
- Redis事务命令
- oracle rac禁止开机自启动
- Mssql 查询语句里字符串值不能用 " 双引号
- MySQL的DDL语句、DML语句与DCL语句
- mongodb 主从复制
- Memcached常用命令
- **MYSQL** 数据库初识
- 数据库设计--实践
- mysql索引总结----mysql 索引类型以及创建
- MySQL中in和=的区别