1 查詢 數(shù)據(jù)庫 所有表
select table_name?
from?
information_schema.tables?
where?
table_schema='sdam'
2 查詢數(shù)據(jù)庫所有表 和表的?注釋
SELECT TABLE_NAME, TABLE_COMMENT
from ?information_schema.tables?
WHERE TABLE_SCHEMA = 'dam'?
ORDER BY TABLE_NAME;
3?查詢數(shù)據(jù)庫 單個表名所有表?注釋文章來源:http://www.zghlxwxcb.cn/news/detail-695567.html
SELECT
COLUMN_NAME 字段,column_comment 中文,COLUMN_Type as 類型 ,column_key 主鍵,
IS_NULLABLE 可空,EXTRA 備注
FROM
INFORMATION_SCHEMA.COLUMNS
where
table_schema ='sdam' AND table_name = 'table-name';文章來源地址http://www.zghlxwxcb.cn/news/detail-695567.html
到了這里,關(guān)于MySQL查詢數(shù)據(jù)庫所有表名及其注釋的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!