Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete record
Message
De
15/12/2015 06:56:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
15/12/2015 02:53:22
Muthu Vel
Sty Company
Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 10
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01628943
Message ID:
01628951
Vues:
44
>I have three tables namely 1. empmain 2. salary 3. recovery. The empid field is common for all three tables. I want to delete the record at once for all tables based on empid field. The empid field is Integer data type.
>
>How to delete the record?

If you always want to delete related records in "child tables" when you delete a record in the "parent table", you can set up referential integrity rules in the database. In that case, Visual FoxPro will create the corresponding triggers, in the database, to delete the related records automatically, any time you delete the parent record (even if you delete it manually, for example in a BROWSE window).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform