mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
fix: 达梦数据库操作bug
This commit is contained in:
@@ -10,7 +10,7 @@ select
|
|||||||
a.created as CREATE_TIME,
|
a.created as CREATE_TIME,
|
||||||
TABLE_USED_SPACE((SELECT SF_GET_SCHEMA_NAME_BY_ID(CURRENT_SCHID)), a.object_name)*page() as DATA_LENGTH
|
TABLE_USED_SPACE((SELECT SF_GET_SCHEMA_NAME_BY_ID(CURRENT_SCHID)), a.object_name)*page() as DATA_LENGTH
|
||||||
from dba_objects a
|
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))
|
where a.owner = (SELECT SF_GET_SCHEMA_NAME_BY_ID(CURRENT_SCHID))
|
||||||
and a.object_type = 'TABLE' and a.status = 'VALID'
|
and a.object_type = 'TABLE' and a.status = 'VALID'
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user