Bonjour
pour @poids à 0,5 @PoidsDeCalcul =0 ;
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 @Poids decimal DECLARE @PoidsDeCalcul int if @Poids > 0 and @Poids <= 1 SET @PoidsDeCalcul = 1; if @Poids > 1 and @Poids <= 2 SET @PoidsDeCalcul = 2;
pour @poids à 1 @PoidsDeCalcul =1 ;
pour @poids à 1,5 @PoidsDeCalcul =1 ;
Qu'est-ce que je ne fait pas comme il faut ?
cordialement
Partager