查看表信息
select table_name, table_comment, create_time, update_time from information_schema.tables where table_comment <> '' and table_schema = (select database()) and table_name = 'sys_dept' ;
select table_name tableName, engine, table_comment tableComment, create_time createTime from information_schema.tables
where table_schema = (select database()) and table_name = 'sys_dept' ;
select column_name, data_type, column_comment from information_schema.columns where table_name = 'sys_dept' and table_schema = (select database()) order by ordinal_position ;