in reply to Re: dbi mysql concat interpolation
in thread dbi mysql concat interpolation

I tried your SQL statement in mysql command line it works for me.

That's a different case - in the OP's case MySQL never even sees the backslash because it gets interpreted by Perl. Compare these two:

print "SELECT CONCAT('My','\'', 'QL')", "\n"; print "SELECT CONCAT('My','\\'', 'QL')", "\n"; __END__ SELECT CONCAT('My',''', 'QL') SELECT CONCAT('My','\'', 'QL')