select column_name,data_type,character_maximum_length
from information_schema.columns
where table_name='table_name'
sql简单的查看表中字段,类型,长度
最新推荐文章于 2025-06-18 15:46:25 发布

select column_name,data_type,character_maximum_length
from information_schema.columns
where table_name='table_name'