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.
这是从 dbo.Emp 打印的记录总数,每个唯一值
我是这样做的: SELECT field1, COUNT( ) records FROM dbo.Emp GROUP BY field1 HAVING SUM( )