查看一个表有多少列

select count(*)
from information_schema.COLUMNS
where TABLE_SCHEMA='库名' and table_name='表名'

posted @ 2021-07-23 11:24  DeusJin  阅读(247)  评论(0)    收藏  举报