Re: double linked list - Mailing list pgsql-sql

From Christoph Haller
Subject Re: double linked list
Date
Msg-id 3E393610.7E3B9E77@rodos.fzk.de
Whole thread Raw
In response to double linked list  (jasche@gmx.de (Juergen))
List pgsql-sql
>
> On Thursday 30 January 2003 07:10, Christoph Haller wrote:
> > I've seen CELKO's reply and find it very useful.
> > But I cannot find anything about
> >
> > > BEGIN ATOMIC
> > > DECLARE rightmost_spread INTEGER;
> > >
> > > SET rightmost_spread
> > >     =3D (SELECT rgt
> > >          FROM Frammis
> > >         WHERE part = 'G');
> > > ...
> >
> > Is this PostgreSQL at all? Any hints welcome.
>
> Mr Haller
>
> No, this is a dialect SQL-92 (SQL-99?) that Mr Celko uses for his
> examples since his solutions are vendor neutral. He is big on
standards,
> so posting using the standard is his way of boosting them.
>
> BEGIN ATOMIC  is BEGIN in PG.
>
> I am not sure how to declare a variable in PG in normal SQL. I don't
do
> it that often, but when I do I do this:
>
> CREATE TEMPORARY TABLE Rightmost_Spread
> AS SELECT rightmost_spread
>      FROM Frammis
>     WHERE part = 'G';
>
> I wonder what the alternatives are?
>
plpgsql is the best I can think of.
And thanks for the quick reply.

Regards, Christoph




pgsql-sql by date:

Previous
From: Alan Gutierrez
Date:
Subject: Re: double linked list
Next
From: Tom Lane
Date:
Subject: Re: Filter function