Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which one is better
Message
 
 
To
09/02/2006 14:51:47
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01095210
Message ID:
01095216
Views:
11
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform