码迷,mamicode.com
首页 > 数据库 > 详细

SQL 中 null 值的处理方式

时间:2014-11-06 14:20:37      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:style   color   sp   bs   as   sql   nbsp   table   如何   

1.查询时,如果列中的值为 null,如何为列赋默认值。

 SELECT ISNULL([Column],‘默认值‘) AS [Column] FROM [DataTable]

SQL 中 null 值的处理方式

标签:style   color   sp   bs   as   sql   nbsp   table   如何   

原文地址:http://www.cnblogs.com/me-code/p/4078434.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!