Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional Logic
Message
De
17/06/2008 11:28:37
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Conditional Logic
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01324772
Message ID:
01324772
Vues:
52
I need to do something like the following in a query.
DO WHILE looping through fetched rows and @MyVar changes value

BEGIN

IF @MyVar = 1
     BEGIN
          Do This
     END

IF @MyVar > 1
     BEGIN
          Do This
     END

IF @MyVar = 1 and there were no @MyVar > 1
     BEGIN
          Do This
     END

END
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform