Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instead of OR in WHERE clause
Message
 
 
À
03/02/2014 22:56:45
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:
01593074
Vues:
27
>>You can use UNION with the rest of the conditions. It is the same thing.
>
>I am not sure I am following you. Could you provide a small example?

This query
select * from myTable where Condition1 OR Condition2
is the same as
select * from myTable where Condition1
UNION
select * from myTable where Condition2
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