我想知道是否可以找到表中的行数和列数.
I would like to know if it's possible to find the number of both rows and columns within a table.
SELECT COUNT(*)
FROM tablename
SELECT COUNT(*)
FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_catalog = 'database_name' -- the database
AND table_name = 'table_name'
这篇关于查找表中的列数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!