時間:2024-03-08 08:50作者:下載吧人氣:18
實現的功能類似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)
網友評論