Truncate (SQL)

Een TRUNCATE-opdracht in SQL wist de gegevens uit één tabel van een database. De TRUNCATE TABLE table_name-opdracht is logisch (maar niet fysiek) gelijk aan de DELETE FROM table_name-opdracht. Bij TRUNCATE wordt echter ook de AUTO_INCREMENT-waarde op 0 gezet.

TRUNCATE Syntax

 TRUNCATE TABLE table_name

Zie ook

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.