Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there another command for _TALLY for SQLEXEC cursor?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00242718
Message ID:
00243534
Vues:
30
Thanks. I like that much better -- great idea. I wish I had been more specific with the first question.
Doug

>>I was afraid that was the answer. Is there anything I need to watch out for using RECCOUNT()? Everything seems to be working fine for now. I'm using this to see if the SQL returns any "child" records before deleting a parent record.
>
>Doug,
>
>What about using a subquery in the WHERE clause of the DELETE to prevent the deletion if any children exists:
>
>DELETE FROM parent
>WHERE pk = something AND NOT EXIST
>(SELECT * FROM child WHERE fk = parent_pk)
>
>-Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform