Gossamer Forum
Home : General : Databases and SQL :

Re: [Paul] Replace certain charachters in ALL fields?

Quote Reply
Re: [Paul] Replace certain charachters in ALL fields? In reply to
I've read the part on;

REPLACE(str,from_str,to_str)
Returns the string str with all all occurrences of the string from_str replaced by the string to_str:
mysql> SELECT REPLACE('www.mysql.com', 'w', 'Ww');
-> 'WwWwWw.mysql.com'

However, they don't seem to say anywhere on that page how you would define the actual field. They use www.mysql.com as the example, but how would I set it to use a field etc? I'm a little confused with this function Unsure

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Replace certain charachters in ALL fields? Andy 6998 Dec 24, 2002, 3:12 AM
Thread Re: [Andy] Replace certain charachters in ALL fields?
Paul 6769 Dec 24, 2002, 5:28 AM
Thread Re: [Paul] Replace certain charachters in ALL fields?
Andy 6793 Dec 24, 2002, 7:40 AM
Post Re: [Andy] Replace certain charachters in ALL fields?
Paul 6665 Dec 24, 2002, 10:31 AM