RE: [GENERAL] Newbie Questions, PostgreSQL

From: "Taral" <taral(at)mail(dot)utexas(dot)edu>
To: "Sze Yuen Wong" <swong_(at)yahoo(dot)com>, <pgsql-general(at)postgreSQL(dot)org>
Subject: RE: [GENERAL] Newbie Questions, PostgreSQL
Date: 1998-10-15 18:30:34
Message-ID: 000701bdf869$e5c6afa0$3b291f0a@taral
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> 1.What is wrong with the following PostgreSQL statement?
>
> CREATE RULE r1 AS ON INSERT TO TBL1 DO [INSERT INTO TBL2 values
> (new.i);
> NOTIFY TBL2];
>
> I got the following error messages following its execution:
>
> ERROR: parser: parse error at pr near ""
> ERROR: parser: parse error at pr near "]"

You want " and ", not [ and ]. And you will need to specify LANGUAGE "SQL"
as well, I think.

Taral

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andy Lewis 1998-10-15 19:22:52 Easiest and shortest way?
Previous Message Sze Yuen Wong 1998-10-15 17:13:07 Newbie Questions, PostgreSQL