From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Frederic boucher <dziablo(at)hotmail(dot)com> |
Cc: | pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [SQL] insert with "Fred's car!" |
Date: | 1999-11-05 20:41:09 |
Message-ID: | 199911052041.PAA16559@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
> 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | De Moudt Walter | 1999-11-05 21:58:19 | calulating with money type impossible ? |
Previous Message | Stuart Rison | 1999-11-05 18:07:05 | Re: [SQL] create table with default value... |