请问如何统计列数? select count(*) from information_schema.columns where table_name='t1' 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select count(*) from 表 where 字段 is not null select 字段a when is null then '1' else '0'+ 字段b when is null then '1' else '0' +字段a when is null then '1' else '0'+...+ 字段w when is null then '1' else '0'from table where 主键字段=''这样是否能找出一行中的为null的总数。 不明白会有什么意义记录: 1,'111',null,null--->需要得到2吗 ? 分组统计明细表,结构已修改??? sql语句多表多字段查询 怎样在互联网上访问铁通宽带的服务器 跨网段分布式事务不能运行的问题? sql 语句查询 如何分组 请问删除一个主键再建立一个的语句如何写? 系统重装后。还原SQL数据库。打开程序说无法连接数据库 删除记录 单表中的查询 sql server链接问题~ 如何实现动态列举字段? 怎么写这样的触发器
+字段a when is null then '1' else '0'+...+ 字段w when is null then '1' else '0'
from table
where 主键字段=''
这样是否能找出一行中的为null的总数。