I created one procedure that takes 2 parameters and checks the counter. But when I pass an ""empty value, it still returns 1 count. I do not understand why it works like that. Thanks for the help below, my procedure
DELIMITER $$
CREATE DEFINER=`dadclient`@`123.63.249.169` PROCEDURE `checkInOut`(IN grid varchar(50),OUT count INT)
begin
select count(GRIDID) into count from GRIDID where GRIDID=grid;
select count;
END
when i call
checkInOut("",@aaa);
select @aaa;
When I call it, it returns me 1, which is wrong.
source
share