delimiter //
create procedure ProductViewAllByName(p_productName longtext)
begin
select productId as 'Product Code',
productName as 'Name',
productGroupId as 'Group ID',
manufactureId as 'Manufacture ID',
stockMinimunLevel as 'Stock Minimum Level',
stockMaximimLevel as 'Stock Maximum Level',
description as 'Description',
unitId as 'Unit ID'
FROM tbl_Product
where productName like p_productName+'%' ;
end //
delimiter ;
error
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '+ '%' ; end' at line 12
CONCAT()for that