16 EYLÜL 2012, Pazar
Tüm tablolar numarasını liste
Benim PostgreSQL liferay
veritabanındaki tüm tablolar listesi gibi yüklemek istiyorum. Nasıl yapabilirim?
liferay
veritabanında SELECT * FROM applications;
yürütmek istiyorum. applications
liferay benim db bir tablo. Bu nasıl yapılıyor?
İşte tüm veritabanlarının bir listesi:
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=#
CEVAP
16 EYLÜL 2012, Pazar
Veritabanına bağlanmak, sonra da tablolar listesi:
\c liferay
\dt
En azından ben öyle biliyorum.
Eğer tercih ederseniz, tek bir satır üzerine bu iki komutları birleştirebilirsiniz:
\c liferay \dt
Bunu Paylaş:
Sıralanmış bir liste için başlangıç nu...
Bir harita() python 3.bir liste dönmek...
Android Liste Görünümü Tek Satır Yenil...
Haskell sonsuz bir liste açısından tem...
Nasıl Android uygulaması yapı/sürüm nu...