下载吧 - 绿色安全的游戏和软件下载中心

软件下载吧

当前位置:软件下载吧 > 技术开发 > 数据库 > PostgreSQL 查找当前数据库的所有表操作

PostgreSQL 查找当前数据库的所有表操作

时间:2024-03-08 08:50作者:下载吧人气:21

实现的功能类似MySQL:

show tables;

在 PostgreSQL 中需要写:

select * from pg_tables where schemaname = ‘public’;

返回结果类似如下:

schemaname | tablename | tableowner | tablespace | hasindexes | hasrules | hastriggers | rowsecurity
————+———–+————+————+————+———-+————-+————-
public | deploy | postgres | | t | f | f | f
public | deploy2 | postgres | | f | f | f | f
(2 rows)

标签[db:关键字]

相关下载

查看所有评论+

网友评论

网友
您的评论需要经过审核才能显示

热门阅览

最新排行

公众号