I just need pass WHERE condition, like:
CREATE DEFINER=`root`@`localhost` PROCEDURE `productpricing2`(
IN cond CHAR(200)
)
BEGIN
SELECT * FROM tbl_products WHERE cond LIMIT 1;
END
and call it like:
CALL productpricing2("productName IS NOT NULL");
Where productName is column in table tbl_products
Thanks