My idea is to filter rows using % and an IN Variable, I am calling this procedure but it doesn't filter the rows. For example: if user types 09 the all the rows with the 09... should appear. I have also tried to use concat but also can't filter. I would appreciate any help you can give me.
This is the procedure
delimiter //
create procedure p (in cedula1 varchar(10))
begin
select * from view_pacientes
-- THIS PART IS WRONG BUT I DONT KNOW HOW TO CORRECT IT TO WORK PROPERLY.
where cedula1+"%" like cedula;
end//