- レコード件数が多すぎて、Countが遅いときに、Index件数で代替して速度向上
indexCount.sql
SELECT
i.name,
i.rows
FROM
sysindexes as i
INNER JOIN
sysobjects o
ON i.id = o.id
WHERE
o.xtype = 'U'
AND i.name = N'PK名称'
Go to list of users who liked
More than 1 year has passed since last update.
SELECT
i.name,
i.rows
FROM
sysindexes as i
INNER JOIN
sysobjects o
ON i.id = o.id
WHERE
o.xtype = 'U'
AND i.name = N'PK名称'
Register as a new user and use Qiita more conveniently
Go to list of users who liked