Tôi muốn liệt kê tất cả các bảng trong liferaycơ sở dữ liệu trong bản cài đặt PostgreSQL của tôi. Làm thế nào để làm điều đó?
Tôi muốn thực hiện SELECT * FROM applications;trong liferaycơ sở dữ liệu. applicationslà một bảng trong db suốt đời của tôi. Làm thế nào được thực hiện?
Đây là danh sách tất cả các cơ sở dữ liệu của tôi:
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 | UTF8 | en_GB.UTF-8 | en_GB.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | en_GB.UTF-8 | en_GB.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
(5 rows)
postgres=#
information_schema.tablesbao gồm các quan điểm cho một số lý do. (Trong