Suppose I have a query likes:
SELECT name FROM product WHERE id = 28;
The result is “HTC Desire HD”
I want this result to be replaced with XX in the string “I Like XX”, after replacing, the string is “I Like HTC Desire HD”
Likes the PHP printf function, can I use MySQL to do that?
That would be:
in regular SQL. I’m not entirely certain that will work in MySQL unless you have
PIPES_AS_CONCATconfigured, but the equivalent:should be fine.