Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select a deleted flag
Message
De
07/04/2009 18:53:37
 
 
À
03/04/2009 20:20:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01393204
Message ID:
01393746
Vues:
39
>>Thanks Hilmar. I added a flag field to the original table and copied deleted() into it. That gave me what I needed.
>>btw - set deleted off was in effect. :)
>
>Sure, but I don't think you need a separate field - not in the original table. What I had in mind was simply to separate the query into more than one query, selecting only a single table in the first query. More or less like this:
>
>
>select system, rtp_id, ... deleted() as del1;
>  from rtp_projects;
>  into cursor temp
>select temp.*, r2.rtp_id, ...;
>  from temp r1 join rtp_projects r2 on ...;
>  into cursor temp2
>
Yes Hilmar. I understood that. But I had other reasons for adding the additional field. (different problem, I need to flush some but not all of the deleted records, so I killed 2 birds with one stone.)

Thanks Naomi, Rich, Dragan.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform