select COLUMN_NAME,DATA_TYPE,COLUMN_COMMENT from information_schema.COLUMNS where TABLE_SCHEMA='数据库名' and table_name='表名'
select COLUMN_NAME,DATA_TYPE,COLUMN_COMMENT from information_schema.COLUMNS where TABLE_SCHEMA='数据库名' and table_name='表名'
本文标题:sql查询表所有字段信息
本文链接:https://www.haomeiwen.com/subject/jjfudxtx.html
网友评论