Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread How to replace ' by sql
Tue, Nov 11 2008 10:28 AMPermanent Link

"Uli Becker"
I have to replace ' by an empty string in a table:

update dta set musiker =  replace('  with '' in musiker);

does not work.

Thanks Uli

Tue, Nov 11 2008 10:32 AMPermanent Link

Fernando Dias

Team Elevate Team Elevate

Uli,

> update dta set musiker =  replace('  with '' in musiker);

update dta set musiker =  replace(''''  with '' in musiker);


--
Fernando Dias
[Team Elevate]
Tue, Nov 11 2008 10:36 AMPermanent Link

Fernando Dias

Team Elevate Team Elevate

PS:
I assumed you want to replace a single quote with an empty string.
If that's not the case and what you want is to replace a single quote
with 2 single quotes then :

update dta set musiker =  replace(''''  with '''''' in musiker);

--
Fernando Dias
[Team Elevate]
Tue, Nov 11 2008 12:46 PMPermanent Link

UliBecker
Fernando,

<<
update dta set musiker =  replace(''''  with '' in musiker);
>>

Thanks. That's it.

Uli
Image