美文网首页
mysql 查询表 所有字段

mysql 查询表 所有字段

作者: JUN888 | 来源:发表于2021-03-17 14:18 被阅读0次
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