4
在PostgreSQL,可以通過運行以下查詢如何在monetdb數據庫中擁有表的列表?
SELECT table_name FROM information_schema.tables WHERE table_schema='public';
是否有monetdb類似的東西有表列表中的所有表的名字呢?
在PostgreSQL,可以通過運行以下查詢如何在monetdb數據庫中擁有表的列表?
SELECT table_name FROM information_schema.tables WHERE table_schema='public';
是否有monetdb類似的東西有表列表中的所有表的名字呢?
我如果您使用的移動客戶端,在命令行中,你可以簡單地使用命令「\ d」可以列出當前數據庫中所有表終於找到這個查詢
select tables.name from tables where tables.system=false ;
。
sql> \d
TABLE sys.table1
TABLE sys.table2
TABLE sys.table3
此外,使用命令「\ d tablename」來查看錶的元數據 - 相當於mysql中的「show create table」。