Re: using = in a function - Mailing list pgsql-general

From Tom Lane
Subject Re: using = in a function
Date
Msg-id 11155.1201574468@sss.pgh.pa.us
Whole thread Raw
In response to using = in a function  (Andy Colson <andy@squeakycode.net>)
Responses Re: using = in a function
List pgsql-general
Andy Colson <andy@squeakycode.net> writes:
> An assignment of a value to a PL/pgSQL variable or row/record field is
> written as:
> variable := expression;

> Notice I just use = and not :=.

> My question is, is there a difference?  It seems to work both ways, so
> I'm a little confused.

Yeah, plpgsql actually allows both, but it's not documented.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Table has duplicate keys, what did I do
Next
From: Tom Lane
Date:
Subject: Re: 8.3RC2 vs 8.2.6 testing results