mysql使⽤sql语句查询数据库所有表注释等
nginx使用场景面试1、/* 查询数据库 test 所有表注释 */
SELECT TABLE_NAME,TABLE_COMMENT FROM information_schema.TABLES WHERE table_schema='test';
position是什么意思翻译2、要查询表字段的注释
SELECT COLUMN_NAME,column_comment FROM INFORMATION_SCHEMA.Columns WHERE table_name='class'AND table_schema='test';
3、⼀次性查询数据库 "test" 下表注释以及对应表字段注释
SELECT t.TABLE_NAME,t.TABLE_COMMENT,c.COLUMN_NAME,c.COLUMN_TYPE,c.COLUMN_COMMENT FROM information_schema.TABLES t,INFORMATION_SCHEMA.Columns c WHERE c.TABLE_NAME=t.TABLE_NAME 4、项⽬中使⽤的,查询数据库所有表的相关字段,属性
SELECT
delphi下载服务器返回的流
'xx系统' system_name,
table_comment table_comment,
a.table_name,
pycharm下载解释器column_comment,
column_name,
CASE WHEN column_key ='PRI'THEN'Y'ELSE'N'END is_key,
CASE WHEN column_name='id'OR column_name='created_by'THEN'⾃动'ELSE'⼿动'END get_type,
column_typemysql面试题sql
FROM (SELECT*FROM information_schema.COLUMNS WHERE table_schema ='test')a
LEFT JOIN (SELECT table_name,table_comment FROM information_schema.TABLES WHERE table_schema='test') b
ssh框架开发实例
ON a.table_name = b.table_name
ORDER BY table_name,ordinal_position ;

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。