是否有任何查询可以列出我的Postgres DB中的所有表.
我尝试了一个查询,如:
SELECT table_name FROM information_schema.tables
WHERE table_schema='public'
Run Code Online (Sandbox Code Playgroud)
但是这个查询也会返回视图.
我怎样才能只获取表名,而不是视图?
我想liferay在PostgreSQL安装中列出数据库中的所有表.我怎么做?
我想SELECT * FROM applications;在liferay数据库中执行.applications是我liferay db中的一个表.这是怎么做到的?
这是我所有数据库的列表:
postgres=# \list
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
liferay | postgres | UTF8 | en_GB.UTF-8 | en_GB.UTF-8 | =Tc/postgres +
| | | | | postgres=CTc/postgres+
| | | | | liferay=CTc/postgres
lportal | postgres | UTF8 | en_GB.UTF-8 | en_GB.UTF-8 |
postgres | postgres | UTF8 | en_GB.UTF-8 | en_GB.UTF-8 |
template0 | postgres …Run Code Online (Sandbox Code Playgroud)