当前位置:网站首页>Several delete operations in SQL
Several delete operations in SQL
2022-06-26 18:12:00 【yanruo06280】
sql Usage and differences of several deletion operations in
1、delete sentence
Delete Delete table data , Keep the table structure , And can add where, Delete one or more lines .
The process of deleting is to delete a row from the table one at a time , At the same time, the delete operation of the row is saved as a transaction record in the log for rollback operation
delete from Table name where codition
2、Truncate Delete table data , Keep the table structure , Can't add where,
Deleting all data from the table at one time does not record the individual deletion operation records in the log , Deleting a line is not recoverable . And the delete trigger related to the table will not be activated during the deletion process . Fast execution .TRUNCATE Only right TABLE;DELETE It can be table and view
truncate table Table name
Clearing speed ,truncate Than delete faster
3、Drop It's completely deleted , Including table structure
drop table Table name
边栏推荐
- Map和List<Map>转相应的对象
- DoS及攻击方法详解
- tag动态规划-刷题预备知识-2. 0-1背包理论基础和二维数组解法模板
- Chen Qiang: Alibaba's 100 billion level large-scale digital business knowledge map helps business growth
- ISO documents
- in和exsits、count(*)查询优化
- 我想知道,我在肇庆,到哪里开户比较好?网上开户是否安全么?
- Knapsack problem with dependency
- Number of solutions for knapsack problem
- Detailed explanation of dos and attack methods
猜你喜欢

LeetCode 128最长连续序列

IDEA收藏代码、快速打开favorites收藏窗口

DoS及攻击方法详解

Detailed explanation of dos and attack methods

让torch.cuda.is_available()从false变成true的一点经验

Concept and working principle of data encryption standard (DES)

VCD video disc

Dos et détails de la méthode d'attaque

行锁与隔离级别案例分析

Deep understanding of MySQL lock and transaction isolation level
随机推荐
A little experience of next (ITER (dataloader))
Map and list < map > transfer to corresponding objects
Binary search-2
Tsinghua & Shangtang & Shanghai AI & CUHK proposed Siamese image modeling, which has both linear probing and intensive prediction performance!
Data Encryption Standard DES security
Handwritten promise all
Padding percentage operation
JVM entry door (1)
CLion断点单步调试
Properties file garbled
Plt How to keep show() not closed
二分查找-2
ISO documents
DoS及攻擊方法詳解
博云,站在中国容器潮头
js强制转换
Detailed explanation of MySQL mvcc mechanism
【QNX】命令
如何将应用加入到deviceidle 白名单?
CD-CompactDisk