Hi David,
Doing some product mapping at the moment and just wondering if there is any quick way of adding the equal character "=" before each line in my alternates field of the productsmap table.
So in each row I would of alternates I might have a number of products as follows
=2010 A
=2010 B
=2010 C
This would save me having to manually enter the = character.
Hope this makes sense !!
Adrian
Excellent, worked great :)
Do you know of a similar command to remove the = character or to simply do a search and replace ?
Thanks
Adrian
Hi Adrian,
The MySQL REPLACE() syntax can be used for more straight forward global modifications, e.g. to remove all "=" from the alternates...
UPDATE productsmap SET alternates = REPLACE(alternates,'=','');
Cheers,
David.
--
PriceTapestry.com
Hi Adrian,
I strongly recommend that you backup your productsmap table before attempting this, but have a go with:
UPDATE productsmap SET alternates = CONCAT('=',REPLACE(alternates,0x0A,CONCAT(0x0A,'=')));
Cheers,
David.
--
PriceTapestry.com