Re: From select to delete - Mailing list pgsql-general

From Alban Hertroys
Subject Re: From select to delete
Date
Msg-id 8540181D-C30D-453E-96B1-FC835998CC74@gmail.com
Whole thread Raw
In response to Re: From select to delete  (Alexander Farber <alexander.farber@gmail.com>)
Responses Re: From select to delete  (Alexander Farber <alexander.farber@gmail.com>)
List pgsql-general
On 28 Oct 2011, at 19:40, Alexander Farber wrote:

> For now I'm trying to finish my 1st approach
> (without "on delete cascade") and the following
> strangely fails with
>
> ERROR:  syntax error at "temp"
> DETAIL:  Expected record variable, row variable, or list of scalar
> variables following INTO.
> CONTEXT:  compilation of PL/pgSQL function "pref_delete_user" near line 3

SELECT INTO in PL/pgSQL isn't the same command as SELECT INTO in SQL.

Check the documentation for the two ;)

Alban Hertroys

--
Screwing up is an excellent way to attach something to the ceiling.


pgsql-general by date:

Previous
From: Alexander Farber
Date:
Subject: Re: From select to delete
Next
From: Alexander Farber
Date:
Subject: Re: From select to delete