2013-02-05 23 views
20

böyle Heroku terminalinde benim db algılamaya çalışıyorum: Yanipg: psql heroku'da nasıl kullanılır?

[email protected]:~/RubymineProjects/myapp$ heroku pg:info 
The plugin heroku-sql-console has been deprecated. Would you like to remove it? (y/N) n 
=== HEROKU_POSTGRESQL_JADE_URL (DATABASE_URL) 
Plan:  Dev 
Status:  available 
Connections: 1 
PG Version: 9.1.6 
Created:  2012-10-10 19:59 UTC 
Data Size: 9.1 MB 
Tables:  32 
Rows:  2802/10000 (In compliance) 
Fork/Follow: Unsupported 

denedim:

[email protected]:~/RubymineProjects/myapp$ heroku pg:psql 
The plugin heroku-sql-console has been deprecated. Would you like to remove it? (y/N) n 
psql (9.1.7, server 9.1.6) 
SSL connection (cipher: **-**-****-**, bits: 256) 
Type "help" for help. 

Ben tüm kullanıcıların kayıtları listelemek gerekir:

dbfjinfaes61gb=> select * from users 
dbfjinfaes61gb-> 

Ama yukarıda, hiçbir şey olmadı, burada neyim eksik?

cevap

28

Sorgunun sonunda noktalı virgül gerekir:

select * from users; 
+0

Teşekkür! evet, noktalı virgül eksikti .. şimdi sonucu görebiliyorum ve sonunda 'END', bir sonraki komuta girmeye nasıl devam edebilirim? – simo

+0

tür ekranını temizlemek ve '>' geri çağırmak için 'q' – catsby