forked from orientechnologies/orientdb
-
Notifications
You must be signed in to change notification settings - Fork 0
QL Truncate Class
lvca edited this page Dec 14, 2012
·
2 revisions
The SQL Truncate Class command deletes the records of all the clusters defined as part of the class. By default every class has one cluster associated with the same name. This command acts at lower level then SQL Delete Command.
TRUNCATE CLASS <class-name>
Where:
- class-name is the name of the class
Remove all the record of class "Profile":
TRUNCATE CLASS Profile
See also SQL Delete Command and SQL Truncate Class commands. To create a new class use the Create Class 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.