当前位置:网站首页>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
边栏推荐
- js强制转换
- Padding percentage operation
- VCD-影音光碟
- 数字签名论述及生成与优点分析
- CD-CompactDisk
- 数据加密标准DES安全性
- Please advise tonghuashun which securities firm to choose for opening an account? Is it safe to open an account online now?
- How to open a stock account? Is it safe to open an account online now?
- GDB installation
- Handwritten promise all
猜你喜欢

Ethereum技术架构介绍

你了解如何比较两个对象吗

in和exsits、count(*)查询优化

Idea collection code, quickly open favorites collection window

解决pycharm里面每个字母占一格空格的问题

RuntimeError: CUDA error: out of memory自己的解决方法(情况比较特殊估计对大部分人不适用)

A little experience of next (ITER (dataloader))

Number of solutions for knapsack problem

带你解决哈希冲突,并实现一个简单hash表,

JVM entry Door (1)
随机推荐
Please advise tonghuashun which securities firm to choose for opening an account? Is it safe to open an account online now?
行锁与隔离级别案例分析
gdb安装
数字签名标准(DSS)
Li Kou daily question - day 28 -566 Reshape matrix
深入理解MySQL锁与事务隔离级别
判断某个序列是否为栈的弹出序列
How does Guosen Securities open an account? Is it safe to open a stock account through the link
Procedure steps for burning a disc
Eigen库计算两个向量夹角
How about opening a flush account? Is it safe? How to open a stock trading account
Vscode usage - Remote SSH configuration description
必须要掌握的面试重点——索引和事务(附讲B-树与B+树)
pycharm如何修改多行注释快捷键
Preparing for the Blue Bridge Cup and ccf-csp
Connected to surface test questions
ros::spinOnce()和ros::spin()的使用和区别
Map和List<Map>转相应的对象
Properties file garbled
输入n个整数,输出出现次数大于等于数组长度一半的数