Re: pl/pgsql and controling loops

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: aklaver(at)comcast(dot)net (Adrian Klaver)
Cc: "Alain Roger" <raf(dot)news(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: pl/pgsql and controling loops
Date: 2008-03-27 19:53:25
Message-ID: 616.1206647605@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

aklaver(at)comcast(dot)net (Adrian Klaver) writes:
> From: "Alain Roger" <raf(dot)news(at)gmail(dot)com>
>> once to do a comparison they use :
> IF (ret == 1) THEN ...
>> once,
> IF (ret = 1) THEN...

> Both are correct.

No they're not, as a simple test would convince you ...
there is no '==' operator in SQL.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alain Roger 2008-03-27 20:01:20 Re: pl/pgsql and controling loops
Previous Message Alain Roger 2008-03-27 19:43:46 dunction issue