SQL查看分区内记录个数,常规方法需要知道分区函数然后再显示,网上看到一个一句话显示的方法 ), ps.name ) as partition_scheme, p.partition_number, ), ds2.name ) as filegroup, ), ) as range_boundary, ) as rows from sys.indexes i join sys.partition_schemes ps on i.data_space_id = ps.data_space_id j