Advertisement
Page2Pub

Untitled

Mar 26th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. CREATE FUNCTION vente.fn_NbCommandes
  2. (@numfou int)
  3. RETURNS int
  4. AS
  5. BEGIN
  6. DECLARE @nb int
  7. SET @nb= (select count(*) from vente.entcom
  8. where numfou = @numfou)
  9. if @nb=0 print Aucune commande pour le founisseur
  10. else print commandes pour le founisseur
  11. RETURN @nb
  12. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement