I made a stored procedure with in parameter. When I call this procedure no error, no result is shown to me. What's wrong in this code?
drop PROCEDURE if exists `getUsersByContact`;
delimiter $$
Create PROCEDURE `getUsersByContact`(
IN contact1 VARCHAR(10)
)
BEGIN
SELECT id,name FROM tbl_user WHERE contact = contact1;
END $$
delimiter ;
When I call like this
call getUsersByContact('9999999999');
It doesn't return any rows and there is no error shown in phpmyadmin. However when I use an out parameter and call stored procedure and select that variable it worked fine. I also tried this link and this link.