Re: insert a value into a table

From: "Larry Rosenman" <ler(at)lerctr(dot)org>
To: "'surabhi(dot)ahuja'" <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: insert a value into a table
Date: 2005-10-21 15:36:23
Message-ID: 000001c5d655$37a6a700$0e1993c0@lerctr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

double the backslashes. They are an escape character.

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 3535 Gaspar Drive, Dallas, TX 75220-3611 US

_____

From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of surabhi.ahuja
Sent: Friday, October 21, 2005 10:00 AM
To: pgsql-general(at)postgresql(dot)org
Subject: [GENERAL] insert a value into a table

i have a fiels - varchar(100)

to this fiels i am trying to insert

"abc\def\xyz'

but it is not inserting the whole thing ...

how can i ensure that the whole string including the backslashes get
inserted into the table

thanks
regards
surabhi

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jonathan Gennick 2005-10-21 15:40:25 Re: [GENERAL] Oracle buys Innobase
Previous Message Zlatko Matić 2005-10-21 15:16:33 sequences, moving from 8.0.4 to 8.1 ?