TRUNCATE TABLE

TRUNCATE TABLE removes all user data from the specified table and its indexes.

Syntax

TRUNCATE TABLE <table_name>;

Limitations

Examples

Removes all data from the table with the full path /Root/test/my_table.

TRUNCATE TABLE `/Root/test/my_table`;

Removes all data from table my_table in the current database.

TRUNCATE TABLE `my_table`;

See also