一个SQL语句,耽误您3分钟^_^ 另外突然发现,两个都是NULL的字段不被SQLSERVER认为是相等的吗?select a.* from yz_llb a,yz_tlb b where a.gg=b.gg这条语句查不出一点结果,但是里面有好几条记录的GG字段都是为NULL的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.* from yz_llb a,yz_tlb b where isnull(a.gg,0)=isnull(b.gg,0) case @a when not null then @a=字段1 else '' end,case @b when not null then @b=字段2 else '' end 语法错误case when @a is not null then and @a=字段1 else '' end,case when @b is not null then and @b=字段2 else '' end 请问该错误提示何解? 在查询分析器中能直接执行一个*.sql脚本文件吗?如果编写脚本? 悬赏:数据库问题,占cpu很高,最好是深圳的高手来看一下。费用可以细谈。 ad-hoc即席查询优化以及sql执行计划的生成过程 如何清除数据库的日志文件?? 操作系统不支持SQL Server 服务器端安装 我的多表更新触发器错哪了? 比较棘手的问题 急用 !在线等 请问:有没有用来简单管理需求分析的软件? 真的有必要购买专用服务器吗 游标怎么用? 如何将openquery作为Update的表名,语法如何...解决马上给分...
case @b when not null then @b=字段2 else '' end
case when @a is not null then and @a=字段1 else '' end,
case when @b is not null then and @b=字段2 else '' end