mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update pgsql get table info
This commit is contained in:
parent
53d1c38463
commit
fdd1d90752
@ -57,9 +57,9 @@ namespace SqlSugar
|
||||
{
|
||||
var schema = GetSchema();
|
||||
return @"select cast(relname as varchar) as Name,
|
||||
cast(obj_description(relfilenode,'pg_class') as varchar) as Description from pg_class c
|
||||
cast(obj_description(c.oid,'pg_class') as varchar) as Description from pg_class c
|
||||
inner join
|
||||
pg_namespace n on n.oid = c.relnamespace and nspname='"+ schema + @"'
|
||||
pg_namespace n on n.oid = c.relnamespace and nspname='" + schema + @"'
|
||||
inner join
|
||||
pg_tables z on z.tablename=c.relname
|
||||
where relkind = 'r' and relname not like 'pg_%' and relname not like 'sql_%' and schemaname='" + schema + "' order by relname";
|
||||
|
Loading…
Reference in New Issue
Block a user