!71 fix: 达梦数据库操作bug

Merge pull request !71 from zongyangleo/dev_1213_1
This commit is contained in:
Coder慌
2023-12-13 11:39:42 +00:00
committed by Gitee

View File

@@ -10,7 +10,7 @@ select
a.created as CREATE_TIME,
TABLE_USED_SPACE((SELECT SF_GET_SCHEMA_NAME_BY_ID(CURRENT_SCHID)), a.object_name)*page() as DATA_LENGTH
from dba_objects a
LEFT JOIN USER_TAB_COMMENTS b ON b.TABLE_TYPE='TABLE' and a.object_name = b.TABLE_NAME
LEFT JOIN DBA_TAB_COMMENTS b ON b.TABLE_TYPE='TABLE' and a.object_name = b.TABLE_NAME and b.owner = a.owner
where a.owner = (SELECT SF_GET_SCHEMA_NAME_BY_ID(CURRENT_SCHID))
and a.object_type = 'TABLE' and a.status = 'VALID'
---------------------------------------