postgreSQL数据库中查询所有的用户表
select distinct(tablename) from pg_tables where schemaname='XXX'
postgreSQL数据库中查询用户表的表结构
select a.* from information_schema.columns a
where table_name = 'XXX' and a.table_schema='YYY'order by a.ordinal_position
select distinct(tablename) from pg_tables where schemaname='XXX'
select a.* from information_schema.columns a
where table_name = 'XXX' and a.table_schema='YYY'