Re: What err ??? - Mailing list pgsql-admin

From Masaru Sugawara
Subject Re: What err ???
Date
Msg-id 20020608002218.250E.RK73@sea.plala.or.jp
Whole thread Raw
In response to What err ???  ("Robson Martins" <robson-martins@bol.com.br>)
List pgsql-admin
On Thu, 6 Jun 2002 17:43:28 -0300
"Robson Martins" <robson-martins@bol.com.br> wrote:

> What err ???
>
> SELECT RazaoSocial + ' - ' + Iif(Bairro Is Null,'',Bairro + ' ') + CGCCli As Coluna FROM Clientes WHERE RazaoSocial
Like'%A%' 
>


Uh, there is no error in MS Access, but are two errors in PG: "+"and "iif()".
You need to use "||" and "CASE WHEN ... THEN ... END".  See docs.


Regard,
Masaru Sugawara




pgsql-admin by date:

Previous
From: "Ross J. Reedstrom"
Date:
Subject: Re: What err ???
Next
From: Oliver Elphick
Date:
Subject: Re: What err ???