I would have created the stored procedure, but am failed whenever am trying to call the stored procedure with multiple values into single parameter as stated below.
delimiter //
create procedure sp_country(IN code varchar(50))
begin
SELECT Name, Code2 FROM country where Code2 in (code);
end;//
delimiter ;
when i pass one value as below it will return the one record.
call sp_country ('AF')
but whenever i pass the two more values as below it doesn't return anything.
call sp_country ('AF,AL')
i has been referring some sites but am not get properly in this scenario. can someone please advise me. Thanks.!