Synchronization code

This commit is contained in:
sunkaixuan
2024-03-15 10:42:08 +08:00
parent e421a3755d
commit 102b4fb7ac

View File

@@ -70,10 +70,7 @@ namespace SqlSugar
{ {
get get
{ {
return @"select cast(relname as varchar) as Name,cast(Description as varchar) from pg_description return @"select table_name as name from information_schema.views where table_schema ='" + GetSchema()+"' ";
join pg_class on pg_description.objoid = pg_class.oid
where objsubid = 0 and relname in (SELECT viewname from pg_views
WHERE schemaname ='"+GetSchema()+"')";
} }
} }
#endregion #endregion