tags:

views:

50

answers:

1

I have about 6k rows of data where we have & in various different rows. I'd like to replace this with an ampersand sign if possible. Can someone please tell me how to do this with mysql? Thanks

+2  A: 

The MySQL REPLACE function should work nicely:

UPDATE tablename SET fieldname = REPLACE(fieldname, "&", "&");
gahooa
Am I wrong or will this do what I need? I just don't want to make a mistake here. :)
That did in fact work. Thanks a bunch gahooa!