SORU
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ş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Abbeydabby0277's channel

    Abbeydabby02

    9 ŞUBAT 2012
  • LG Mobile Global

    LG Mobile Gl

    2 EYLÜL 2010
  • Trulia

    Trulia

    29 Kasım 2006