【发布时间】:2014-10-27 17:23:06
【问题描述】:
我有一个存储过程,它有一个字符串参数。当我使用包含一些特殊字符(如 'ş' 或 'ğ' 的单词调用时,它会返回 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 的一部分:
IF personalNames != '' THEN
SET personalNames = LOWER(personalNames);
SET @WherePart = CONCAT(@WherePart,' AND LOWER(per.Name) LIKE "%',personalNames,'%"');
你有什么建议吗?
【问题讨论】:
标签: mysql sql stored-procedures utf-8