SELECT GP.Param_ID, GP.Value, GP.Value_Hindi, GP.Param_Type_ID, GPTM.Param_Type_Name, GPTM.Param_Type_Name_Hindi, GP.Is_Active
FROM M_Global_Param GP
INNER JOIN M_Global_Param_Type_Master GPTM ON GP.Param_Type_ID = GPTM.Param_Type_ID
WHERE GP.Param_ID = IFNULL(NULL,GP.Param_ID)
AND GP.Param_Type_ID = IFNULL(NULL,GP.Param_Type_ID)
AND GPTM.Param_Type_Name = IFNULL(NULL,GPTM.Param_Type_Name)
AND (GP.value IFNULL OR VALUE LIKE '%' + value+ '%')
AND GP.Is_Active = IFNULL('1',GP.Is_Active)
ORDER BY GPTM.param_Type_Name;
如何使用'喜欢' mysql中的operator,用于按字符的用户名进行搜索。
AND(GP.value IFNULL OR VALUE LIKE'%' + value +'%')
在此行中获取SQL语法错误