Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instead of OR in WHERE clause
Message
De
04/02/2014 01:28:16
 
 
À
03/02/2014 23:12:51
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:
01593094
Vues:
25
>>You don't need to use 1 condition per select. Split them in 2 equal parts.
>
>Ok, it would probably range within the same timeframe.
>
>>There is no other magic bullet, I think, except for the case when all conditions are for the same column. In this case you would use IN subselect.
>
>I thought that maybe SQL Server had something like WHERE InList(Table.PrimaryKey, 1, 2, 3).

Remember this ? message#1574481
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform