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
background In data warehouse modeling, the origin...
Table of contents 1. Use closures 2. Use ES6 clas...
When I wrote the Redis book and the Spring Cloud ...
Check the Python version python -V If it is below...
1. Background of Parallel Replication First of al...
This article example shares the specific code of ...
Table of contents 1. The relationship between red...
This article example shares the specific code of ...
Table of contents 1. Overview 1. Principle 2. Imp...
1. Create a centos7.6 system and optimize the sys...
Mysql sets boolean type 1. Tinyint type We create...
Table of contents Preface Component Introduction ...
Table of contents The relationship between the co...
Introduction: When I looked at interview question...
Table of contents 1. Project Description: 2. Proj...