parser :parse error - Mailing list pgsql-sql

From Frederic boucher
Subject parser :parse error
Date
Msg-id 19991108193749.91569.qmail@hotmail.com
Whole thread Raw
Responses Re: [SQL] parser :parse error  (Bruce Momjian <maillist@candle.pha.pa.us>)
Re: [SQL] parser :parse error  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: wieck@debis.com (Jan Wieck)
Date:
Subject: Re: [SQL] Declare Cursor...
Next
From: "Matlack, Brad"
Date:
Subject: newbie outer-join