MS-SQL > objects , sysindexes - Å×ÀÌºí ·¹ÄÚµå COUNT ¸¦ »Ì¾Æº¸ÀÚ
µî·ÏÀÏ : 2017-07-03 19:53
Á¶È¸¼ö : 67,158
--½Ã½ºÅÛ Å×À̺íÀ» ÀÌ¿ëÇÑ °¢ Å×À̺íÀÇ COUNTÁ¤º¸
select o.name as TABLE_NAME, i.rows as ROW_COUNT_ALL
from sysindexes i, sysobjects o
where o.xtype = 'U'
and o.name <> 'sysdiagrams'
and o.id = i.id
order by o.name
ÀÌ·¸°Ô ±¸ÇÏ¸é ¾Æ¹«¸® ¸¹Àº ¾çÀÇ ·¹Äڵ带 °¡Áø Å×À̺íÀ̶ó ÇÒ Áö¶óµµ count()ÇÔ¼ö º¸´Ù ¿ùµîÈ÷ ºü¸¥ ¼Óµµ·Î
Ä«¿îÆ® Á¤º¸¸¦ °¡Á®¿Ã ¼ö ÀÖ½À´Ï´Ù.