MYSQL 查询表列数
select count(*) from information_schema.columns where table_schema="db" and table_name="tb"
db是表所在的数据库名称,tb是要查询的表名
声明:该文观点仅代表作者本人,入门客AI创业平台信息发布平台仅提供信息存储空间服务,如有疑问请联系rumenke@qq.com。
select count(*) from information_schema.columns where table_schema="db" and table_name="tb"
db是表所在的数据库名称,tb是要查询的表名