Mysql 查询列注释及列名称_MySQL
程序员文章站
2024-04-05 15:59:18
...
//查询列注释及列名称
select column_name, column_comment from information_schema.columns where table_schema ='databaseName' and table_name = 'tableName';//查询表注释及表名称
select table_name,table_comment from information_schema.tables where table_schema = 'image' and table_name ='tableName';
select column_name, column_comment from information_schema.columns where table_schema ='databaseName' and table_name = 'tableName';//查询表注释及表名称
select table_name,table_comment from information_schema.tables where table_schema = 'image' and table_name ='tableName';
下一篇: Oracle与Mysql的区别