Syntax
Parameters
Parameter | Description |
---|---|
<table_name> | The name of the table to be truncated. |
Reference and syntax for the TRUNCATE TABLE command.
TRUNCATE TABLE <table_name>
Parameter | Description |
---|---|
<table_name> | The name of the table to be truncated. |
TRUNCATE TABLE product;
product
+------------+--------+
| name | price |
+---------------------+
| wand | 125 |
| broomstick | 270 |
| bludger | 0 |
| robe | 80 |
| cauldron | 25 |
| quaffle | 0 |
+------------+--------+
product
+------------+--------+
| name | price |
+---------------------+
Was this page helpful?