sql如何判断出表中为空的所有列
比如用select * 查出全部为空的列名
https://www.thinbug.com/q/51749194
参考
比如A表 有 a b 两个列 select count(a) a,count(b) b from A 然后看哪个值等于 0 , 因为count计数的时候 null 是不算的, 等于 0 就表示这个列 都是 null 空数据
select * from tablea
where 1=1
and tablea.a is null