摘要:
在数据库里经常会遇到空处理下面是一些处理空字符的东西sqlserver>isnull(a,b); a为NULL 返回b ,a不为NULL返回a>coalease(exp [,..n])实现case when(exp1 is not null) then exp1when (exp2 is not null) then exp2...else expnend即 coalease(exp1,exp2,exp3..expn)>nullif(exp1,exp2) 相等返回null,不相等返回exp1mysql --ifnull(a,b) 同 mssql isnull()access- 阅读全文