Advertisement
JouJoy

Procedure

Dec 14th, 2021
926
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.23 KB | None | 0 0
  1. use IlnurKurs
  2.  
  3. go
  4. CREATE  PROCEDURE Get_date_of_first_buy_material(
  5. @kod_mat int,
  6. @date_of_first_buy date OUTPUT
  7. )
  8. AS
  9. BEGIN
  10.    
  11.     set @date_of_first_buy = (SELECT MIN(date_of_post) from Uchet
  12.     where (@kod_mat=kod_mat))
  13. END
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement