Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete record
Message
From
15/12/2015 07:09:01
 
 
To
15/12/2015 06:56:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 10
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01628943
Message ID:
01628953
Views:
43
>>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).


I wondered if I should mention RI - if the OPer does not know the syntax, RI probably would be overkill. If the delete was restricted, it was a badly formulated OP ;-))
Previous
Reply
Map
View

Click here to load this message in the networking platform