how to change delimiter single-quote ?

Started by Jonathan davisalmost 27 years ago5 messagesgeneral
Jump to latest
#1Jonathan davis
haj@idianet.net

Hello

I'have some problems with single-quote,
if i insert some text with single-quote ( ' ) error occured !!!
thanks

#2Simon Drabble
simond@foxlink.net
In reply to: Jonathan davis (#1)
Re: [GENERAL] how to change delimiter single-quote ?

On Tue, 29 Jun 1999, abdelkrim wrote:

Hello

I'have some problems with single-quote,
if i insert some text with single-quote ( ' ) error occured !!!
thanks

The common way to achieve this is to double up the quotes:

INSERT INTO table (column) VALUES ('Some ''quoted'' text');

Simon.

--
"Half-dead cat found in box -- Animal Rights group seeks Austrian scientist"

Simon Drabble Somewhere in cyberspace
simond@foxlink.net

#3Jonathan davis
haj@idianet.net
In reply to: Simon Drabble (#2)
Re: [GENERAL] how to change delimiter single-quote ?

On Tue, 29 Jun 1999, abdelkrim wrote:

Hello

I'have some problems with single-quote,
if i insert some text with single-quote ( ' ) error occured !!!
thanks

The common way to achieve this is to double up the quotes:

INSERT INTO table (column) VALUES ('Some ''quoted'' text');

Simon.

--
"Half-dead cat found in box -- Animal Rights group seeks Austrian

scientist"

Simon Drabble Somewhere in cyberspace
simond@foxlink.net

is't no way to change the single-quote to an another character ?

#4Chris Bitmead
cbitmead@ozemail.com.au
In reply to: Jonathan davis (#1)
Re: [GENERAL] how to change delimiter single-quote ?

You can backquote the quote:
'Don\'t do that'

abdelkrim wrote:

Show quoted text

Hello

I'have some problems with single-quote,
if i insert some text with single-quote ( ' ) error occured !!!
thanks

#5Remigiusz Sokolowski
rems@gdansk.sprint.pl
In reply to: Simon Drabble (#2)
Re: [GENERAL] how to change delimiter single-quote ?

Hello

I'have some problems with single-quote,
if i insert some text with single-quote ( ' ) error occured !!!
thanks

The common way to achieve this is to double up the quotes:
INSERT INTO table (column) VALUES ('Some ''quoted'' text');

I don't try it, but in such a cases I use something like that:
'Some \'quoted\' text'
Rem

-------------------------------------------------------------------*------------
Remigiusz Sokolowski e-mail: rems@gdansk.sprint.pl * *
-----------------------------------------------------------------*****----------