I want to put this request (SELECT qte FROM table_stock where id_pro = cpt1) into an integer, like that i will be able to check if the product still exist (if quantity >0) so I us
2 Answers
SELECT qte
into quantite
FROM table_stock
where id_pro = cpt1;
More details in the PL/pgSQL reference