pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Masaru Sugawara <rk73@sea.plala.or.jp>
To: Robson Martins <robson-martins@bol.com.br>
Cc: pgsql-admin@postgresql.org
Subject: Re: What err ???
Date: Sat, 08 Jun 2002 00:23:30 +0900
Message-ID: <20020608002218.250E.RK73@sea.plala.or.jp> (raw)
In-Reply-To: <001701c20e11$b6ff1b00$3a3c620a@catnet.com.br>
References: <001701c20e11$b6ff1b00$3a3c620a@catnet.com.br>


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






view thread (11+ messages)  latest in thread

Message-ID: <20020608002218.250E.RK73@sea.plala.or.jp>
Permalink:  ../20020608002218.250E.RK73@sea.plala.or.jp/
Also on:    postgresql.org/message-id/20020608002218.250E.RK73@sea.plala.or.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: rk73@sea.plala.or.jp, robson-martins@bol.com.br
  Subject: Re: What err ???
  In-Reply-To: <20020608002218.250E.RK73@sea.plala.or.jp>
  References: <001701c20e11$b6ff1b00$3a3c620a@catnet.com.br> <20020608002218.250E.RK73@sea.plala.or.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox