Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which one is better
Message
De
09/02/2006 14:51:47
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Which one is better
Divers
Thread ID:
01095210
Message ID:
01095210
Vues:
49
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform