mysql如何查看表名及注釋

mysql查看表名及注釋的方法:執(zhí)行【select table_name from information_schema.tables where table_schema=’數(shù)據(jù)庫名稱’;】語句即可查看。

mysql如何查看表名及注釋

查詢所有表名

(推薦教程:mysql視頻教程

select?table_name?from?information_schema.tables?where?table_schema='數(shù)據(jù)庫名稱';

查詢數(shù)據(jù)庫表名的注釋:

select?table_name?表名,TABLE_COMMENT?表注釋?from?INFORMATION_SCHEMA.TABLES?Where?table_schema?=?'數(shù)據(jù)庫名稱'?AND?table_name?="表名"

相關(guān)推薦:mysql視頻教程

以上就是

? 版權(quán)聲明
THE END
喜歡就支持一下吧
點(diǎn)贊15 分享