Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create View question, how to set the index key
Message
De
12/07/2003 07:29:11
 
 
À
12/07/2003 04:38:29
Agnes Cheng
DynamicTech Consultants Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00809543
Message ID:
00809553
Vues:
32
Hi Agnes

>I use "view" to create serveral tables.
>However, How can I set the index key ?? As i need to use "SEEK" in my program ?

You cannot define a persistent index on a view. However, you can create an index on a view yourself because views are always local to the user and are opened exclusive.
SELECT [view]
*** Make sure that you do not have Table Buffering enabled
*** Can't build an index on Table buffered view!
CURSORSETPROP('buffering', 3 )
*** Build the index
INDEX ON [expression] TAG [name]
>
>More, as I use create view, there is an option to choose [no of records] or [percent] .
>Will this option affect the performance of the view ???

The short answer is 'it depends'. There will be some impact because you are forcing some addditional processing, but whether you would ever notice it is another question. If you need either of those functions, use them.
----
Regards
Andy Kramek
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform