nope not because in/out thing.. solve it already
create procedure totalmonth(btnid integer(10),mnth varchar(10))
begin
declare a varchar(20);
set @a=concat('%-',mnth,'-%');
select count(click) as total from eachclick where btn=btnid and date like @a ;
end
eventually when i used
call totalmonth(2,05);
it not actually passing 05 as the value.. it actually passing 5 as the value...
so when i declare the variable as varchar and put a qoute to 05 when calling the procedure
call totalmonth(2,"05");
and it worked.. thx anyway..