外连接时 null值问题 我用left outer Join时在生成的表里有很多的null,能不能不生成null,而生成空值“ ”,这样查询表看上去清楚多了。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select case when col is null then '' else col end from t 可以用isnull()函数解决。isnull(ColumnName,'') declare @t table(ID varchar(2))insert @t select nullinsert @t select 1select isnull(id ,'') from @t ---- 1 求表的设计方案 求一条查询两个表显示查询语言 求高手解答! 在update触发器中如何使用修改前,后的数据? 求助,SQL系统表损坏 关于约束的问题,救命啊 存储过程分页 sqlserver 批量增加的语句 sql 这个现象谁遇见过?? 主键与唯一键的区别是什么 计算公式:上次试验日期+周期(月)=下次计划时间
isnull(ColumnName,'')
insert @t select null
insert @t select 1
select isnull(id ,'') from @t ---- 1