Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instead of OR in WHERE clause
Message
 
 
À
03/02/2014 19:12:55
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01593065
Message ID:
01593071
Vues:
37
>I am spliting my SQL in two at some locations to collect first the primary keys and then issue another SQL based on a simple WHERE clause for just the primary keys. Instead of putting a list of conditions separated by a OR, is there a more sufficient approach?

You can use UNION with the rest of the conditions. It is the same thing.
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