3,499
社区成员
发帖
与我相关
我的任务
分享
select 'a' as col from table
where a is null
union all
select 'b' as col from table
where b is null
[/quote]
test改成表名TCIP_ZX_P_CRED_CARD_INFO,这个我已经改过了的。一直显示sql未正常结束。
我就是想查询一下一张表里有哪些字段的值全为空,因为字段名比较多,想只通过表名来进行查询,所以参考网上教程写了这个declare。[/quote]能远程吗?私信你了,远程看看
select 'a' as col from table
where a is null
union all
select 'b' as col from table
where b is null
[/quote]
test改成表名TCIP_ZX_P_CRED_CARD_INFO,这个我已经改过了的。一直显示sql未正常结束。
我就是想查询一下一张表里有哪些字段的值全为空,因为字段名比较多,想只通过表名来进行查询,所以参考网上教程写了这个declare。
select 'a' as col from table
where a is null
union all
select 'b' as col from table
where b is null