pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpsql doesn't work
2+ messages / 2 participants
[nested] [flat]
* psql doesn't work
@ 2003-06-14 10:09 stas kim <tolko_ot_tebya@pisem.net>
0 siblings, 1 reply; 2+ messages in thread
From: stas kim @ 2003-06-14 10:09 UTC (permalink / raw)
To: pgsql-admin
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.
oh, im running
-- openbsd 3.3
-- postgresql 7.3.2
thanx
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: psql doesn't work
@ 2003-06-14 13:31 Ernest E Vogelsinger <ernest@vogelsinger.at>
parent: stas kim <tolko_ot_tebya@pisem.net>
0 siblings, 0 replies; 2+ messages in thread
From: Ernest E Vogelsinger @ 2003-06-14 13:31 UTC (permalink / raw)
To: tolko_ot_tebya@pisem.net; +Cc: 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/
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-06-14 13:31 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-14 10:09 psql doesn't work stas kim <tolko_ot_tebya@pisem.net>
2003-06-14 13:31 ` Ernest E Vogelsinger <ernest@vogelsinger.at>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox