I have the following procedure:
create procedure buscar(
in producto)
begin
select nombre from producto where nombre like'%'+producto+'%'
end
but I get an error in the like
try using
create procedure buscar(
in producto)
begin
select nombre from producto where nombre like'%'||producto||'%'
end
but when doing a search, I do not see similar products
for example I do
call Buscador_Producto('c');
and I do not see the products that start with c, I have to write the full name of the product