字符串mysql存储
CREATE DEFINER=root
@localhost
PROCEDURE kkk
(biaoshi varchar(10))
BEGIN
set @count="1";
if(biaoshi.equals(@count)) then
select 2;
else
select 1;
end if;
END
系统报错
:21:52:28 call kkk('1') Error Code: 1305. FUNCTION biaoshi.equals does not exist 0.000 sec
@count为自定义的字符串
biaoshi为传入的字符串
目的:怎么判断@count与biaoshi是否相等后输出2
不相等后 输出1