From: Masaru Sugawara <rk73@sea.plala.or.jp>
To: Sugandha Shah <Sugandhas@cybage.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: parser: parse error at or near "$1"
Date: Wed, 14 Aug 2002 22:21:50 +0900
Message-ID: <20020814221050.C853.RK73@sea.plala.or.jp> (raw)
In-Reply-To: <026801c2438d$c9466a00$2005a8c0@cybage.com>
References: <026801c2438d$c9466a00$2005a8c0@cybage.com>
On Wed, 14 Aug 2002 17:56:16 +0530
"Sugandha Shah" <Sugandhas@cybage.com> wrote:
> -- check for the exact same status string reported
> -- previously and skip it if found
>
> select into last_status top 1 status, last_code status_code from
>status_log where schedule_id =schedule_id order by complete_time desc ;
PostgreSQL doesn't have a TOP keyword. You'll need to use a LIMIT keyword.
See docs.
http://www.postgresql.org/idocs/index.php?sql-select.html
Regards,
Masaru Sugawara
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: rk73@sea.plala.or.jp, Sugandhas@cybage.com
Subject: Re: parser: parse error at or near "$1"
In-Reply-To: <20020814221050.C853.RK73@sea.plala.or.jp>
* 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