時間:2024-03-08 08:50作者:下載吧人氣:17
實現(xiàn)的功能類似MySQL:
show tables;
在 PostgreSQL 中需要寫:
select * from pg_tables where schemaname = ‘public’;
返回結(jié)果類似如下:
schemaname | tablename | tableowner | tablespace | hasindexes | hasrules | hastriggers | rowsecurity
————+———–+————+————+————+———-+————-+————-
public | deploy | postgres | | t | f | f | f
public | deploy2 | postgres | | f | f | f | f
(2 rows)
網(wǎng)友評論