concatenation in mysql is ~not~ performed with that horrid plus sign
saldy, neither is it performed with the SQL standard double pipes (||) concatenation operator
in mysql, you need to use the CONCAT function
Code:
SELECT Table2.Msg
, Table1.Code
FROM Table1
INNER
JOIN Table2
ON Table2.Msg LIKE CONCAT('%',Table1.code,'%')
