From: | Ernest E Vogelsinger <ernest(at)vogelsinger(dot)at> |
---|---|
To: | tolko_ot_tebya(at)pisem(dot)net |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: psql doesn't work |
Date: | 2003-06-14 13:31:52 |
Message-ID: | 5.1.1.6.2.20030614152608.03bb5c20@mail.vogelsinger.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
At 12:09 14.06.2003, stas kim said:
--------------------[snip]--------------------
>Hi there.
>im new to pgsql so mayby i did smth wrong 8)
>when i run psql and then any sql command nothing happans
>but when i type the same thing from shell with -c parameter everything works
>fine.
--------------------[snip]--------------------
did you add a semicolon after the SQL command?
psql gives you hints if statements have not been yet completed:
test=#
means "database "test" is ready, waiting for a command"
test-#
means the preceding command has not yet been completed (semicolon missing)
test(#
means there's at least one open parenthesis
Example:
test=# SELECT * FROM mytable
test-# WHERE column in (
test(# 1,2,3)
test-# and nothing is null
test-# ;
output from command goes here
test=#
Hope this helps,
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
From | Date | Subject | |
---|---|---|---|
Next Message | Mendola Gaetano | 2003-06-14 18:51:34 | Re: statistics question |
Previous Message | stas kim | 2003-06-14 10:09:50 | psql doesn't work |