forked from orientechnologies/orientdb
-
Notifications
You must be signed in to change notification settings - Fork 0
SQL Truncate Record
lvca edited this page Dec 22, 2012
·
1 revision
The SQL Truncate Class command truncates a record without loading it. Useful when the record is dirty in any way and can't be loaded correctly.
TRUNCATE RECORD <rid>*
Where:
- rid RecordID to truncate. To truncate multiple records in one shot, list all the RecordIDs separated by comma inside squared brackets.
The number of records truncated.
Truncates the record #20:3:
TRUNCATE RECORD 20:3
Truncates 3 records all together:
TRUNCATE RECORD [20:0, 20:1, 20:2]
See also SQL Delete Command.
To know more about other SQL commands look at SQL commands.
This is a command of the Orient console. To know all the commands go to Console-Commands.