当前位置:网站首页>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
边栏推荐
- KDD 2022 | how to use comparative learning in cross domain recommendation?
- Using redis for user access data statistics hyperloglog and bitmap advanced data types
- RSA概念详解及工具推荐大全 - lmn
- Several key points in divorce agreement
- LeetCode 128最长连续序列
- next(iter(dataloader))的一点点体会
- How pycharm modifies multiline annotation shortcuts
- RSA encryption and decryption details
- Boyun, standing at the forefront of China's container industry
- Temporarily turn off MySQL cache
猜你喜欢

Row lock analysis and deadlock

Ethereum技术架构介绍

CD-CompactDisk

Vscode usage - Remote SSH configuration description

Tsinghua & Shangtang & Shanghai AI & CUHK proposed Siamese image modeling, which has both linear probing and intensive prediction performance!

ISO文件

Let torch cuda. is_ Experience of available() changing from false to true

Applet setting button sharing function

transforms. The input of randomcrop() can only be PIL image, not tensor

博云,站在中国容器潮头
随机推荐
JNI的 静态注册与动态注册
股票开账户如何优惠开户?现在在线开户安全么?
JVM entry door (1)
wechat_ Solve the problem of page Jump and parameter transfer by navigator in wechat applet
小程序设置按钮分享功能
17.13 supplementary knowledge, thread pool discussion, quantity discussion and summary
行锁与隔离级别案例分析
in和exsits、count(*)查询优化
LM06丨仅用成交量构造抄底摸顶策略的奥秘
输入n个整数,输出出现次数大于等于数组长度一半的数
[buuctf.reverse] 126-130
Knapsack problem with dependency
Tencent qianzhiming: Exploration and application of pre training methods in information flow business
同花顺开户怎么样安全吗?怎么炒股开户
ZCMU--1367: Data Structure
RuntimeError: CUDA error: out of memory自己的解决方法(情况比较特殊估计对大部分人不适用)
Temporarily turn off MySQL cache
Map and filter methods for processing scarce arrays
Get and set settings in 26class
CD-CompactDisk