Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 03E12476809 for ; Fri, 7 Jun 2002 12:47:26 -0400 (EDT) Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by postgresql.org (Postfix) with ESMTP id D9A0D476870 for ; Fri, 7 Jun 2002 12:02:44 -0400 (EDT) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-31.mail.demon.net with esmtp (Exim 3.35 #1) id 17GMCI-0003FY-0V; Fri, 07 Jun 2002 17:02:43 +0100 Received: from localhost ([127.0.0.1] helo=localhost.localdomain ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.35 #1 (Debian)) id 17GMCQ-0001y7-00; Fri, 07 Jun 2002 17:02:50 +0100 Subject: Re: What err ??? From: Oliver Elphick To: Robson Martins Cc: pgsql-admin@postgresql.org In-Reply-To: <001701c20e11$b6ff1b00$3a3c620a@catnet.com.br> References: <001701c20e11$b6ff1b00$3a3c620a@catnet.com.br> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Fh2nv0NwmfvEOzhktUq+" X-Mailer: Ximian Evolution 1.0.5 Date: 07 Jun 2002 17:02:49 +0100 Message-Id: <1023465770.26291.5859.camel@linda> Mime-Version: 1.0 X-Archive-Number: 200206/47 X-Sequence-Number: 4482 --=-Fh2nv0NwmfvEOzhktUq+ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2002-06-06 at 21:43, Robson Martins wrote: > What err ??? >=20 > SELECT RazaoSocial + ' - ' + Iif(Bairro Is Null,'',Bairro + ' ') + CGCCli= As Coluna FROM Clientes WHERE RazaoSocial Like '%A%' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ You should probably be using COALESCE() here. The string concatenation operator is not + but || All those capital letters will be folded to lower-case. If you have actually created things in the database whose names contain capitals, you will need to enclose those names in double-quotes. --=20 Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C "There is a way that seems right to a man, but in the=20 end it leads to death."=20=20=20=20=20=20=20 Proverbs 16:25=20 --=-Fh2nv0NwmfvEOzhktUq+ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA9ANkpYU1MND4dDBwRAuT8AJ9IhHXw2/tjmiNj9ccMvjg6+OCZUACfdx7o UeE+yP6Vt8c3uxr2T6m+WgY= =IGlR -----END PGP SIGNATURE----- --=-Fh2nv0NwmfvEOzhktUq+--