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
本文介绍如何在PostgreSQL数据库中查询所有用户表及特定表的详细结构,包括使用SQL语句的方法。
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'
2万+

被折叠的 条评论
为什么被折叠?