Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DO CASE equavalent in Transact-SQL
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01326640
Message ID:
01326714
Vues:
19
>What's wrong with one SP. You always can use structure like this:
>
>IF @Something1
>   BEGIN
>   -- Select 1
>   END
>ELSE IF @Something2
>   BEGIN
>   -- Select 2
>   END
>ELSE IF @Something3
>   BEGIN
>   -- Select 3
>   END
>
SQL Server Help doesn't list the syntax you suggested.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform