From 7c6f5f1bf2e2ab0cd00290bfc6d1527348507004 Mon Sep 17 00:00:00 2001 From: "zhuhong.lee" <275516080@qq.com> Date: Wed, 27 Mar 2024 17:24:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Oracle=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=AD=97=E5=85=B8=E6=9F=A5=E7=9C=8B=E6=97=B6=E6=8E=92=E9=99=A4?= =?UTF-8?q?=E5=9B=9E=E6=94=B6=E7=AB=99=E5=86=85=E7=9A=84=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/engines/oracle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/engines/oracle.py b/sql/engines/oracle.py index 7f19a394ff..7e23d5184e 100644 --- a/sql/engines/oracle.py +++ b/sql/engines/oracle.py @@ -169,7 +169,7 @@ def get_all_tables(self, db_name, **kwargs): def get_group_tables_by_db(self, db_name): data = {} - table_list_sql = f"""SELECT table_name, comments FROM dba_tab_comments WHERE owner = :db_name""" + table_list_sql = f"""SELECT a.table_name,a.comments FROM dba_tab_comments a,all_tables b WHERE a.table_name=b.table_name AND a.owner=b.owner AND a.owner=:db_name""" result = self.query( db_name=db_name, sql=table_list_sql, parameters={"db_name": db_name} )