Combreal

CreateAndUseProcedure.sql

Oct 3rd, 2019
664
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.24 KB | None | 0 0
  1. -- create and use procedure
  2. DROP PROCEDURE IF EXISTS getArticle;
  3. DELIMITER $$
  4. CREATE PROCEDURE getArticle(p_article VARCHAR(100))
  5. BEGIN
  6.   SELECT * FROM intervention WHERE Code_article = p_article ;
  7. END$$
  8. DELIMITER ;
  9. CALL getArticle('00069') ;
Add Comment
Please, Sign In to add comment