TRUNCATE TABLE
grammar TRUNCATE TABLE name parameter Is the name of the table to be truncated or from which all rows are to be deleted. Notes The For tables referenced by a FOREIGN KEY constraint, TRUNCATE TABLE cannot be used. Instead, a DELETE statement without a WHERE clause should be used. Because TRUNCATE TABLE is not logged, it cannot activate triggers. Example The following example deletes all data from the authors table. Permissions Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: Vue implements tab navigation bar and supports left and right sliding function
>>: How to solve the problem that VMware virtual machine bridge mode cannot access the Internet
This article example shares the specific code of ...
Prerequisites A cloud server (centOS of Alibaba C...
1. Introduction ● Random writing will cause the h...
1. Introduction Today a colleague asked me how to...
After reading some articles, I finally figured ou...
When installing a virtual machine, a prompt appea...
Table of contents 1. Background 2. Understanding ...
Table of contents Primary key index Create indexe...
Table of contents 1. this points to 2. Modify thi...
1. Command Introduction The contab (cron table) c...
This article example shares the specific code of ...
Setting min-width and max-width properties in tab...
# Adjust VMware hard disk boot priority Step 1: E...
download http://nginx.org/en/download.html Unzip ...
Table of contents Overview What are callbacks or ...