[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
TRUNCATE
Syntax
TRUNCATE TABLE table_name |
In 3.23 TRUNCATE TABLE
is mapped to
COMMIT; DELETE FROM table_name
. See section 13.1.1 DELETE
Syntax.
TRUNCATE TABLE
differs from DELETE FROM ...
in the following ways:
AUTO_INCREMENT
value
but may start counting from the beginning. This is true for
MyISAM
, ISAM
, and BDB
tables.
TRUNCATE TABLE
is an Oracle SQL extension.
This statement was added in MySQL 3.23.28, although from 3.23.28
to 3.23.32, the keyword TABLE
must be omitted.