MySQL数据库列和注释查询

select COLUMN_NAME,COLUMN_COMMENT from information_schema.columns
where table_schema = 'mydb' #表所在数据库
and table_name = 'mytb' ; #你要查的表

  

select COLUMN_NAME,COLUMN_COMMENT from information_schema.columnswhere table_schema = 'its_bserver_202120_airport_7eleven_20210821' #表所在数据库and table_name = 'virtual_line' ; #你要查的表

posted @ 2021-09-09 09:31  蜜铀  阅读(148)  评论(0编辑  收藏  举报