Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query #2 - MySQL and MS-SQL
Message
De
07/03/2008 12:10:42
 
 
À
07/03/2008 12:05:01
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01296743
Message ID:
01299769
Vues:
20
The @invoices table in my example, in the read world of course is a table, which I presume would be indexed adequately. The @weekendings in my solution indeed would be a table variable, Performing a tablescan is neccesary because of the nature of the query. Indexing it would not speed up anything (as far as can see anyways). The real query would be optimized on the invoice date column of the 'real' table.

Walter, true, the @invoices table would normally be a regular indexed table - what I'm referring to is any table variable that you're using in place of a CTE.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform