4D v14.3TRUNCATE TABLE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
TRUNCATE TABLE
|
TRUNCATE TABLE {( aTable )} | ||||||||
Parameter | Type | Description | ||||||
aTable | Table |
![]() |
Table where all records will be deleted or Default table if this parameter is omitted | |||||
The TRUNCATE TABLE command quickly deletes all the records of aTable. After calling the command, there is no longer any current selection or current record.
The effect of this command is similar to that of an ALL RECORDS / DELETE SELECTION sequence; however, its functioning differs on the following points:
The TRUNCATE TABLE command should therefore be used with caution but is very effective in certain cases, for example, such as quickly deleting temporary data
Note: The concept and functioning of this command is similar to that of the SQL TRUNCATE (TABLE) command.
If the command has been executed correctly, the OK system variable is set to 1. Otherwise, it is set to 0.
Product: 4D
Theme: Selection
Number:
1051
Modified: 4D v11 SQL Release 3
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)