TRUNCATE
- Close a cursor
+ Empty a table
1999-07-20
-TRUNCATE TABLE table
+TRUNCATE [ TABLE ] name
- table
+ name
- The table name to truncate.
+ The name of the table to be truncated.
Description
- TRUNCATE quickly removes all rows from a table.
+ TRUNCATE quickly removes all rows from a
+ table. It has the same effect as an unqualified
+ DELETE but since it does not actually scan the
+ table it is faster. This is most effective on large tables.
-
+
+
Usage
- Truncate the table bigtable.
-
+ Truncate the table bigtable:
+
TRUNCATE TABLE bigtable;
-
+
+