X-Original-To: pgsql-sql@postgresql.org Received: from ftpbox.mot.com (ftpbox.mot.com [129.188.136.101]) by postgresql.org (Postfix) with ESMTP id 5E909475AFF for ; Thu, 20 Mar 2003 22:16:42 -0500 (EST) Received: from pobox3.mot.com (pobox3.mot.com [10.64.251.242]) by ftpbox.mot.com (Motorola/Ftpbox) with ESMTP id h2L3GkGv000974 for ; Thu, 20 Mar 2003 20:16:46 -0700 (MST) Received: [from plnt056.comm.mot.com (plnt056.comm.mot.com [145.2.198.83]) by pobox3.mot.com (MOT-pobox3 2.0) with ESMTP id UAA22855 for ; Thu, 20 Mar 2003 20:14:32 -0700 (MST)] Received: by plnt056.comm.mot.com with Internet Mail Service (5.5.2656.59) id ; Thu, 20 Mar 2003 22:16:45 -0500 Message-ID: From: Sethi Tarun-ETS017 To: pgsql-sql@postgresql.org Subject: newline character in SQL Date: Thu, 20 Mar 2003 22:16:44 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200303/507 X-Sequence-Number: 12546 How can I remove the newline character from the value of a column. For Example: Select name, comments from table where comment like '%Fine%'; Results: NAME COMMENTS John M. This was a Fine piece of work. Above, I'd like the Results to appear: NAME COMMENTS John M. This was a Fine piece of work. I tried substr, instr, hedged right ... but can't get it to work. Any help will be greatly appreciated. Regards TS