4D v13.4DELETE SUBRECORD |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
DELETE SUBRECORD
DELETE SUBRECORD
Subtables are no longer supported starting with version 11 of 4D. A compatibility mechanism ensures the functioning of this command in converted databases; however, it is strongly recommended to replace any subtables with standard related tables. DELETE SUBRECORD deletes the current subrecord of subtable. If there is no current subrecord, DELETE SUBRECORD has no effect. After the subrecord is deleted, the current subselection for subtable is empty. As a result, DELETE SUBRECORD can’t be used to scan through a subselection and delete selected subrecords. The deletion of subrecords is not permanent until the parent record is saved. Deleting a parent record automatically deletes all its subrecords. To delete a subselection, create the subselection you want to delete, delete the first subrecord, create the subselection again, delete the first subrecord, and so on. The following example deletes all the subrecords of a subtable: ALL SUBRECORDS([People]Children) The following example deletes the subrecords in which the age of the child is greater than or equal to 12, from the [People]Children subtable : ALL RECORDS([People]) ` Select all the records |
PROPERTIES
Product: 4D
INDEX HISTORY
Modified: 4D v11 SQL SEE ALSO
ALL SUBRECORDS |
||||||||||||||||||||||||||||||||||||||||||||||||||||||