X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 06C84D1B494 for ; Wed, 24 Dec 2003 10:51:41 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 32332-05 for ; Wed, 24 Dec 2003 06:50:53 -0400 (AST) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by svr1.postgresql.org (Postfix) with ESMTP id F0288D1B4D3 for ; Wed, 24 Dec 2003 06:50:49 -0400 (AST) Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AZ6b5-0007x3-00 for ; Wed, 24 Dec 2003 11:50:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-odbc@postgresql.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AZ6EZ-0007b5-00 for ; Wed, 24 Dec 2003 11:27:19 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AZ6EZ-0007bB-00 for ; Wed, 24 Dec 2003 11:27:19 +0100 From: Stephen Powell Subject: Re: add some word in select Date: Wed, 24 Dec 2003 14:50:30 +1100 Lines: 16 Message-ID: References: <018101c3c488$64f46340$0200a8c0@bandeng> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (windows-nt) Hamster/2.0.4.0 Cancel-Lock: sha1:Yvf3mG0tA1ERmgWxmqyuikTQnN0= X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/88 X-Sequence-Number: 3626 On Wed, 17 Dec 2003, ricky@babonmultimedia.com wrote: > hello, i have sql "select name from user" then row result "John" > come up. is it posible that the result produce "HELLO John" . > there's word "Hello" before the name Use the concatenation operator '||'. select 'Hello ' || name from user where name = 'John'; You should probably download a copy of the user manual from . It describes many of the functions and operators that are available. -- Stephen Powell