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 PAA03030 for ; Fri, 5 Nov 1999 15:56:37 -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 PAA16559; Fri, 5 Nov 1999 15:41:09 -0500 (EST) From: Bruce Momjian Message-Id: <199911052041.PAA16559@candle.pha.pa.us> Subject: Re: [SQL] insert with "Fred's car!" In-Reply-To: <19991105195146.67707.qmail@hotmail.com> from Frederic boucher at "Nov 5, 1999 11:51:46 am" To: Frederic boucher Date: Fri, 5 Nov 1999 15:41:09 -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 > Hi, > > A simple question : > > How can I insert a values like > > insert into tablename values('Fred's car'); > > I've tried "Fred's car", 'Fred''s car', etc but nothing work.. is there a > "\something" to pass it like Should work. test=> create table test (x text); CREATE test=> insert into test values ('asdf''fred'); INSERT 18569 1 test=> select * from test; x ----------- asdf'fred (1 row) -- 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