Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding more fields into a dataset
Message
De
22/05/2013 10:39:00
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
 
 
À
22/05/2013 10:31:02
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01574472
Message ID:
01574489
Vues:
43
J'aime (1)
>>
>>SELECT Table.FirstName
>> FROM Table
>> WHERE Table.PrimaryKey in (1,2,3,4)
>>
>
>Yes, this is exactly what I am looking for. As a mattter of fact, I just found it at the same time.
>
>Would you know if this would be as good for the execution plan or performance could be an issue?

Always depends on the data at hand, but most uniform best times should be reached by piping the list of PK's into a temp table with index and inner joining to base select table, esp on longer PK-lists.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform