| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Michael Glaesemann <grzm(at)myrealbox(dot)com> |
| Cc: | "Zlatko Matic" <zlatko(dot)matic1(at)sb(dot)t-com(dot)hr>, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: = or := ? |
| Date: | 2005-05-09 13:47:14 |
| Message-ID: | 25180.1115646434@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Michael Glaesemann <grzm(at)myrealbox(dot)com> writes:
> On May 9, 2005, at 18:00, Zlatko Matic wrote:
>> This is a newbie question: what is the difference between using = and
>> := in plpgsql function ?
> In pl/pgsql,
> := is assignment
> = is a logical comparison for equality
It looks like the code will in fact allow you to spell an assignment
statement either way ... but I recommend following Michael's advice
for clarity.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | JM | 2005-05-09 13:55:22 | Need input on postgres used for phpBB |
| Previous Message | Ying Lu | 2005-05-09 13:40:35 | "Hash index" vs. "b-tree index" (PostgreSQL 8.0) |