You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECTT.TABLE_NAME, C.COMMENTSFROM DBA_TABLES T
LEFT JOIN ALL_TAB_COMMENTS C ON (C.OWNER=T.OWNERANDC.TABLE_NAME=T.TABLE_NAME)
WHERET.OWNER='具体模式名'ORDER BYT.TABLE_NAMEASC;
2. 查询表字段设计
SELECTCOL.COLUMN_NAME"字段名称",
COL.DATA_TYPE"字段类型",
COL.DATA_LENGTH"字段长度",
(CASE WHEN NULLABLE ='N' THEN '否' ELSE '是' END) "是否为空",
COM.COMMENTS"字段描述"FROM DBA_TAB_COLUMNS COL
LEFT JOIN DBA_COL_COMMENTS COM ON (COM.OWNER=COL.OWNERANDCOM.TABLE_NAME=COL.TABLE_NAMEANDCOM.COLUMN_NAME=COL.COLUMN_NAME)
WHERECOL.OWNER='具体模式名'ANDCOL.TABLE_NAME='具体表名';
3. 整体查询
SELECTT.TABLE_NAME"表名",
C.COMMENTS"表注释",
COL.COLUMN_NAME"字段名称",
COL.DATA_TYPE"字段类型",
COL.DATA_LENGTH"字段长度",
(CASE WHEN NULLABLE ='N' THEN '否' ELSE '是' END) "是否为空",
COM.COMMENTS"字段描述"FROM DBA_TABLES T
LEFT JOIN ALL_TAB_COMMENTS C ON (C.OWNER=T.OWNERANDC.TABLE_NAME=T.TABLE_NAME)
LEFT JOIN DBA_TAB_COLUMNS COL ON (COL.OWNER=T.OWNERANDCOL.TABLE_NAME=T.TABLE_NAME)
LEFT JOIN DBA_COL_COMMENTS COM ON (COM.OWNER=COL.OWNERANDCOM.TABLE_NAME=COL.TABLE_NAMEANDCOM.COLUMN_NAME=COL.COLUMN_NAME)
WHERET.OWNER='具体模式名'ORDER BYT.TABLE_NAMEASC, COL.COLUMN_IDASC;
The text was updated successfully, but these errors were encountered:
1. 查询模式下所有表
2. 查询表字段设计
3. 整体查询
The text was updated successfully, but these errors were encountered: