Re: Is it databases in general, SQL or Postgresql?

From: Jaime Casanova <systemguards(at)gmail(dot)com>
To: Bob Pawley <rjpawley(at)shaw(dot)ca>
Cc: Postgre General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Is it databases in general, SQL or Postgresql?
Date: 2005-11-15 17:55:02
Message-ID: c2d9e70e0511150955y47dc1bf2uc77be5c1a2d2f76a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/15/05, Bob Pawley <rjpawley(at)shaw(dot)ca> wrote:
> create or replace function base() returns trigger as $$
>
> begin
>
> insert into pi (fluid_id) values (new.fluid_id)
>
> where pr (contain) = 'ip';
>
> return null;
>
> end;
>
> $$ language plpgsql;
>
> Error Message �
>
>
>
> ERROR: syntax error at or near "where" at character 41
>
> QUERY: insert into pi (fluid_id) values ( $1 ) where pr (contain) =
> 'ip'CONTEXT: PL/pgSQL function "base" line 2 at SQL statement

this is SQL... the INSERT statement doesn't accept a WHERE clause

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bob Pawley 2005-11-15 17:56:46 Re: Is it databases in general, SQL or Postgresql?
Previous Message Bob Pawley 2005-11-15 17:53:29 Re: Is it databases in general, SQL or Postgresql?