ZKX's LAB

postgres查看数据目录 postgresql查看数据库怎么查看指定的模式 数据表

2021-04-27知识5

postgresql怎么查看数据库编码,在otgreql中数据库的编码对于数据存储是很重要的,下面小编给大家分享一下otgreql中如何查看数据库编码。

如何查PostgreSQL 数据库中所有的表 1、通过命令行查询21135261\\d 数据库—得到所有表的名字4102\\d 表名—1653—得到表结版构2、通过SQL语句查权询select*from pg_tables\"—得到当前db中所有表的信息(这里pg_tables是系统视图)select tablename from pg_tables where schemaname='public'\"—得到所有用户自定义表的名字(这里\"tablename\"字段是表的名字,\"schemaname\"是schema的名字。用户自定义的表,如果未经特殊处理,默认都是放在名为public的schema下)

如何查PostgreSQL 数据库中所有的表 \"select*from pg_tables\"—5261—得到当前db中所有表的信息(这4102里pg_tables是系统视图)select tablename from pg_tables where schemaname='public'\"—得到所有用户自定义表的名字(这里\"tablename\"字段是表1653的名字,\"schemaname\"是schema的名字。用户自定义的表,如果未经特殊处理,默认都是放在名为public的schema下)

#postgres查看数据目录

随机阅读

qrcode
访问手机版