MYSQL 查询表列数
select count(*) from information_schema.columns where table_schema="db" and table_name="tb"
db是表所在的数据库名称,tb是要查询的表名
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
select count(*) from information_schema.columns where table_schema="db" and table_name="tb"
db是表所在的数据库名称,tb是要查询的表名