sql小技巧

检索某个字段为空的所有记录的条件语句
...where col_name is null

检验某个值是否为空 IF (isnull(@tid,0)=0)

posted @ 2013-06-14 11:31  梦醒心晴  Views(135)  Comments(0Edit  收藏  举报