DECLARE @Counts INT
select @Counts =rows from sysindexes where id = object_id('IpAddress') and indid in (0,1)
本文介绍如何使用SQL查询语句获取数据库表IpAddress的行数,通过查询sysindexes视图来实现,利用ID和INDID筛选条件进行高效检索。
DECLARE @Counts INT
select @Counts =rows from sysindexes where id = object_id('IpAddress') and indid in (0,1)

被折叠的 条评论
为什么被折叠?
