Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index on integer & date fields
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00229164
Message ID:
00229179
Vues:
19
>>>Can I create an index based on an integer & a date field? Actually, the integer refers to the primary key (unintelligent) of another table.
>>>
>>>Thanks.
>>
>>Yes, use STR(IntegerField) + DTOS(DateField) as the key for the index
>
>Actually, I have 3 tables. Table 1 parent of table 2 & table 2 parent of table 3. I want to create an index in table 3 that is on the primary key of table 1 plus a date field. Can the table 3 index expression be
>STR(table2.integerField) + DTOS(table3.DateField)

You might be better off creating a parameterized view of the tables, or doing a SQL Select, rather than maintaining an index based on multiple tables. You can create lots of headaches for yourself, especially if you create the index as a tag, since at times you might not have the relation set the same way.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform