Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing Deleted() in sql
Message
De
30/10/1998 16:21:01
 
 
À
30/10/1998 15:58:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00153034
Message ID:
00153048
Vues:
27
>If I have tag DELTAG() with expression DELETED() and try to reference it in SQL, my optimization gets affected. How do I use it correctly?
>
>SELECT anyfield;
>FROM T1, T2;
>WHERE T1.field = T2.field;
>
>Shows full optimization for both tables with SYS(3054)
>If I try to use:
>
>SELECT anyfield;
>FROM T1, T2;
>WHERE T1.field = T2.field;
>AND NOT DELETED();
>
>my optimization gets cut back to partial for T1 but remains full for T2. I have the DELTAG in both tables using the same expression.

Don't include DELETED() in Select. Instead SET DELETED ON. VFP will take care of rest.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform