如何查询postgreSQL 里面某个数据库中所有用户定义的数据表的名字

2025-04-16 12:10:07
推荐回答(1个)
回答1:

用sql获取数据库中所有的表名的方法:
1、oracle下:select table_name from all_tables;
2、MySQL下:select table_name from information_schema.tables where table_schema='csdb' and table_type='base table';
3、sql server下:select name from sys.tables go