Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL question 1

Status
Not open for further replies.

gerito

Programmer
Sep 11, 2002
8
ES
How can I do something like this:

"UPDATE _table SET _c = (REPLACE(_c, '±', 'ñ') REPLACE(_c, 'ß', 'á') REPLACE(_c, '¾', 'ó'))"

because this code is erroneus.

Thanks and greetings.
 
I think it's beacuse you can't string together a bunch of REPLACE functions like that. Try it like this:

UPDATE _table SET _c = (REPLACE(REPLACE(REPLACE(_c, '¾', 'ó'), 'ß', 'á'), '±', 'ñ'))
 
Just curious, why didn't you post this in the sql forum? Glen A. Johnson
Johnson Computer Consulting
MCP W2K
glen@johnsoncomputers.us

[americanflag]

"There is only one good: knowledge; and only one evil: ignorance."
Socrates (470- 399 BC); Greek philosopher.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top