Re: From select to delete

From: Alban Hertroys <haramrae(at)gmail(dot)com>
To: Alexander Farber <alexander(dot)farber(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: From select to delete
Date: 2011-10-28 17:49:48
Message-ID: 8540181D-C30D-453E-96B1-FC835998CC74@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alexander Farber 2011-10-28 17:55:08 Re: From select to delete
Previous Message Alexander Farber 2011-10-28 17:40:22 Re: From select to delete