Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subquery with Deleted() does not work?
Message
 
 
À
15/09/2009 09:35:48
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 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01424502
Message ID:
01424504
Vues:
61
You cannot use Deleted() in a multi-table query. See http://www.berezniker.com/content/pages/visual-foxpro/queries-and-functions-which-accept-alias-parameter for more info.
In general, an application should treat deleted records as none-existent. It'll be consistent with other back end databases. If you need to mark records in some way, add an additional field.

>This query does not return any results, but I know the temp cursor has deleted records that are in the real table.
>
>
> Select * from JobItems where ipkey in (Select ipkey From csrTempJobItems Where Deleted()=.T.)
>
>
>If I run the subquery by itself, I do get the desired results for the subquery, so I do not understand why it does not work in the full query shown above:
>
> Select ipkey From csrTempJobItems Where Deleted()=.T.
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform