Select data from “show tables” MySQL query

后端 未结 13 1796
难免孤独
难免孤独 2020-12-01 04:15

Is it possible to select from show tables in MySQL?

SELECT * FROM (SHOW TABLES) AS `my_tables`

Something along these lines, th

13条回答
  •  孤街浪徒
    2020-12-01 04:38

    SELECT column_comment FROM information_schema.columns WHERE table_name = 'myTable' AND column_name = 'myColumnName'
    

    This will return the comment on: myTable.myColumnName

提交回复
热议问题