我有一個存儲過程,它有一個字符串參數。MySql:不正確的字符串值:' xC5 x9Fe'列
IF personalNames != '' THEN
SET personalNames = LOWER(personalNames);
SET @WherePart = CONCAT(@WherePart,' AND LOWER(per.Name) LIKE "%',personalNames,'%"');
你有什麼建議:當我與其中包含一些特殊字符像「S」或「G」返回Error Code: 1366. Incorrect string value: '\xC5\x9Fe' for column 'personalNames' at row 1 . But when I call with without this special chars everything is ok.
這裏是我的我的SP的一部分字的呼喚嗎?
http://stackoverflow.com/a/11013986/1745672 – Mihai 2014-09-03 09:13:12