数据库中表的行数
问题描述:
用于计算数据库中表的行数的查询是什么?
what is the query that is used to count the number of rows of a table in a data base
答
计算一个表的行数桌子
SELECT COUNT(*) FROM myTable
参考: MSDN:COUNT(Transact-SQL) [
Refer: MSDN: COUNT (Transact-SQL)[^]
选择计数(*)从myTable进入nbr
SELECT COUNT(*) into nbr FROM myTable