Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I use the case statement ?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00596736
Message ID:
00596813
Vues:
21
Try something like this:
SELECT
 *
FROM
 coAudit
WHERE
 (@tiUserid = 0 OR tiUserid = userid)
 AND (@tcAction = 'ALL' OR actiontype = @tcAction)
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform