0
为什么不能正常工作?如何在MySql SELECT语句中正确使用LIKE语句?
DELIMITER ;//
CREATE PROCEDURE `blah`
(
SearchText varchar(4000)
)
BEGIN
SELECT *
FROM table_name
WHERE table_name.StringField LIKE '%' + SearchText + '%'; -- This is where the code is breaking
END;//
您是否尝试引用之类的? '\'%'+ SearchText +'%\'' – PatrikAkerstrand 2009-06-12 07:11:05