मैं अपने PostgreSQL स्थापित में liferay
डेटाबेस में सभी तालिकाओं की सूची करना चाहते हैं। मैं उसको कैसे करू?psql सूची सभी तालिकाओं
मैं डेटाबेस में SELECT * FROM applications;
निष्पादित करना चाहता हूं। applications
मेरे liferay डीबी में एक टेबल है। यह कैसे किया जाता है?
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=#
वाह! आपके बीटीडब्ल्यू के लिए बहुत बहुत धन्यवाद। यह बहुत मूल्यवान है। –
'info_schema.tables' में किसी कारण से विचार शामिल हैं। (PostgreSQL 9.2 में, वैसे भी।) – jpmc26
@ jpmc26 हां, 'table_type = 'VIEW' के साथ, इसलिए उन्हें बाहर करना आसान है। सामान्य एसक्यूएल में जितना संभव हो सके टेबल के समान विचारों का इलाज करने की कोशिश करता है। –