From: Ernest E Vogelsinger <ernest@vogelsinger.at>
To: tolko_ot_tebya@pisem.net
Cc: pgsql-admin@postgresql.org
Subject: Re: psql doesn't work
Date: Sat, 14 Jun 2003 15:31:52 +0200
Message-ID: <5.1.1.6.2.20030614152608.03bb5c20@mail.vogelsinger.at> (raw)
In-Reply-To: <20030614190950.M75525@pisem.net>
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/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: ernest@vogelsinger.at, tolko_ot_tebya@pisem.net
Subject: Re: psql doesn't work
In-Reply-To: <5.1.1.6.2.20030614152608.03bb5c20@mail.vogelsinger.at>
References: <20030614190950.M75525@pisem.net> <5.1.1.6.2.20030614152608.03bb5c20@mail.vogelsinger.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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