Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要查询我的 SQL Server 表中的列数。
select count(*) from your_table
计算所有行,即使某些记录包含NULL条目。
NULL
select count(some_column) from your_table
计算记录在哪里some_column IS NOT NULL
some_column
IS NOT NULL
这个
select count(*) from table
*表示所有列
*