Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Issue: CAST to V a eval expression fire a error
Message
 
 
À
10/04/2005 13:38:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01003005
Message ID:
01003227
Vues:
28
I guess you're right but I still would like to see an example of such index expression from your application.

>Sure ? With this logic you cannot define a index for a VARCHAR field!
>But you can:
>
>CLEAR
>CREATE CURSOR BYBYBUG (AB V(200) NOT NULL)
>INSERT INTO BYBYBUG VALUES ('')
>* THESE TAGS MUST TO HAVE THE SAME STRUCTURE
>INDEX ON AB TAG T1
>SET EXACT ON
>? KEY(),KEYMATCH('')
>INDEX ON CAST('' AS V(200)) TAG T12
>? KEY(),KEYMATCH('')
>X1=['']
>INDEX ON CAST(&X1 AS V(200)) TAG T13
>? KEY(),KEYMATCH('')
>
>
>>Anyway, where would you use such weird index key expressions in real life applications?
>
>In my application. Weird is a statistic concept!
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform