Received: from candle.pha.pa.us (root@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id QAA76507 for ; Mon, 8 Nov 1999 16:01:28 -0500 (EST) (envelope-from maillist@candle.pha.pa.us) Received: (from maillist@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id PAA19322; Mon, 8 Nov 1999 15:39:33 -0500 (EST) From: Bruce Momjian Message-Id: <199911082039.PAA19322@candle.pha.pa.us> Subject: Re: [SQL] parser :parse error In-Reply-To: <19991108193749.91569.qmail@hotmail.com> from Frederic boucher at "Nov 8, 1999 11:37:47 am" To: Frederic boucher Date: Mon, 8 Nov 1999 15:39:33 -0500 (EST) CC: pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL65 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Works on current tree. Try 6.5.3. > Hi, > > I'm trying to create a table with a default value for a field that containt > an 's ... And the server always tell me : > > Error : parser: parse error at or near "s" > > my create looks like : > > create table tablename ( > thefield varchar(50) default 'Fred''s car' > ); > > Any suggestion? > > PS: This is more a linux question... but.. If I have a big file that > contains all my sql to create my tables structure. I want to run it by > doing "\i filename" but it scroll so fast I can't see when there is > error... is there a way to do a kind of "pipe into less" > > \fb > > ______________________________________________________ > Get Your Private, Free Email at http://www.hotmail.com > > ************ > > -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026