极客小将

您现在的位置是:首页 » python编程资讯

资讯内容

postgresql如何查询所有表信息

极客小将2020-11-30-
简介获取当前db中所有的表信息:select * from pg_tables;用户自定义的表,如果未经特殊处理,默认都是放在名为public的schema下select tablename from pg_tables where&

zxC少儿编程网-Scratch_Python_教程_免费儿童编程学习平台

获取当前db中所有的表信息:zxC少儿编程网-Scratch_Python_教程_免费儿童编程学习平台

select * from pg_tables;

用户自定义的表,如果未经特殊处理,默认都是放在名为public的schema下zxC少儿编程网-Scratch_Python_教程_免费儿童编程学习平台

select tablename from pg_tables where schemaname='public'postgres=# select tablename from pg_tables where schemaname='public';  tablename -----------  tb_test (1 行记录)

推荐:PostgreSQL教程zxC少儿编程网-Scratch_Python_教程_免费儿童编程学习平台

预约试听课

已有385人预约都是免费的,你也试试吧...