select COLUMN_NAME,column_comment from information_schema.COLUMNS where table_name = 'db_car_apply'
-- 查询表字段
select COLUMN_NAME from information_schema.COLUMNS where table_name = '表名' and table_schema = '数据库名';
select COLUMN_NAME,column_comment from information_schema.COLUMNS where table_name = 'db_car_apply'
-- 查询表字段
select COLUMN_NAME from information_schema.COLUMNS where table_name = '表名' and table_schema = '数据库名';
本文标题:mysql 查询表 所有字段
本文链接:https://www.haomeiwen.com/subject/ahfecltx.html
网友评论