如果仅是要获取记录(行)数,则建议使用:
SELECt TABLE_ROWSFROM information_schema.tables WHERe table_name='the_table_you_want' -- Can end here if only 1 DB AND table_schema = DATAbase(); -- See comment below if > 1 DB
(至少对于MySQL)。

如果仅是要获取记录(行)数,则建议使用:
SELECt TABLE_ROWSFROM information_schema.tables WHERe table_name='the_table_you_want' -- Can end here if only 1 DB AND table_schema = DATAbase(); -- See comment below if > 1 DB
(至少对于MySQL)。