解决Oracle连接用户和schema不同问题。dba连接用户可以生成不同schema下的表结构

This commit is contained in:
SanLi
2020-08-14 10:39:40 +08:00
parent 426ec81c57
commit 544a1a185d

View File

@@ -166,7 +166,6 @@ public class OracleDataBaseQuery extends AbstractDatabaseQuery {
if (isDda()) {
sql = "SELECT TABLE_NAME, COLUMN_NAME, COMMENTS AS REMARKS FROM DBA_COL_COMMENTS WHERE TABLE_NAME = '%s' AND OWNER = '"
+ getSchema() + "'";
;
}
resultSet = prepareStatement(String.format(sql, table)).executeQuery();
}