Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 45CDB476B95 for ; Fri, 7 Jun 2002 12:14:18 -0400 (EDT) Received: from mps5.plala.or.jp (mpsb-nat18.plala.or.jp [202.212.115.65]) by postgresql.org (Postfix) with ESMTP id 689CA4767B4 for ; Fri, 7 Jun 2002 11:23:00 -0400 (EDT) Received: from vip1600 ([218.47.116.26]) by mps5.plala.or.jp with ESMTP id <20020607152304.SXWV12874.mps5.plala.or.jp@vip1600>; Sat, 8 Jun 2002 00:23:04 +0900 Date: Sat, 08 Jun 2002 00:23:30 +0900 From: Masaru Sugawara To: "Robson Martins" Subject: Re: What err ??? Cc: pgsql-admin@postgresql.org In-Reply-To: <001701c20e11$b6ff1b00$3a3c620a@catnet.com.br> References: <001701c20e11$b6ff1b00$3a3c620a@catnet.com.br> Message-Id: <20020608002218.250E.RK73@sea.plala.or.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.00.11 X-Archive-Number: 200206/46 X-Sequence-Number: 4481 On Thu, 6 Jun 2002 17:43:28 -0300 "Robson Martins" 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