MySQL 查詢表結構和列註釋

一、僅顯示錶的結構有以下幾種方法:數據庫 1)show columns from 表名;spa 2)desc 表名;orm 3) describe 表名;io 二、查詢指定數據庫中指定表各字段的列註釋以下:form select * from information_schema.columns where TABLE_SCHEMA = '數據庫名稱' and TABLE_NAME = '表名稱'
相關文章
相關標籤/搜索