Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which one is better
Message
 
 
À
09/02/2006 14:51:47
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01095210
Message ID:
01095216
Vues:
14
>We have two way to query data
>
>1) Select * from customers where customerID in (12324, 24452,56785,34567 --- lots here 45564, 34355)
>
>Or
>
>2) Create a temp table #customertemp and put all the customerid in bracket in it.
>
>Then
>
>Select * from customers where customerID in (select customerid from #cutomertemp)
>
>Which way is better?
>
>
>Jim Hou

See Re: Variable IN Thread #834228 Message #834232
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform