当前位置:网站首页>Two common ways for orcale to clear table data
Two common ways for orcale to clear table data
2022-06-25 14:18:00 【jason_ renyu】
Orcale It is often used in truncate、delete To clear the data of the table
The difference between the two methods :
- truncate, It means truncated table , It can delete all tables without occupying resources , The advantage is fast , The disadvantage is that deletion cannot be restored , Can't delete by condition .
- delete, It means to delete , Occupied by this operation redolog, Advantages: fast recovery and selective deletion , The disadvantage is that the deletion is slow , Mass deletion is not recommended .
The usage of the two methods ,SQL as follows
truncate table [ Table name ];
delete from [ Table name ];
边栏推荐
- Shell array
- Turtlebot+lms111+gmapping practice
- Suanli & NFT trading platform f3 The exclusive NFT project of XYZ, hash eagle, will be grandly launched
- 网络远程访问的方式使用树莓派
- Application of tactile intelligent sharing-rk3568 in financial self-service terminal
- Stream竟然还有应用进阶学习?作为程序员的你知道吗
- Kubernetes cluster construction of multiple ECS
- 打新债是不是不安全
- 一次性总结:64个数据分析常用术语!
- oracle数据库常用的函数总结
猜你喜欢

完整详细的汇编实验报告

China has made major breakthroughs in battery technology. Japan, South Korea and the United States are lagging behind. China has consolidated its leading edge

The best screenshot tool in the world, color absorption tool snipaste

Realization of neural networks with numpy

多台云服务器的 Kubernetes 集群搭建

Share the code technology points and software usage of socket multi client communication

Reading the "clean" series for the first time, I didn't think it was a good book

英语中的九大词性与九大时态

阻止深度神经网络过拟合(Mysteries of Neural Networks Part II)

shell 数组
随机推荐
两种方法实现pycharm中代码回滚到指定版本(附带截图展示)
分类器与cross entropy loss函数
How does hash eagle, the founder of equity NFT, redefine NFT and use equity to enable long-term value?
Is it safe to open an account with tongdaxin stock?
JVM uses tools to analyze classic cases of OOM
Is qiniu regular? Is it safe to open a stock account?
程序员为什么要软一点?
The best screenshot tool in the world, color absorption tool snipaste
Is it safe for Guosen Securities to open an account?
As a software testing engineer, how do you think to ensure software quality?
One time summary: 64 common terms for data analysis!
Stream竟然还有应用进阶学习?作为程序员的你知道吗
还没弄明白微服务数据架构事务管理+ACID+一致性+CAP+BASE理论吗,看完彻底解决疑惑
Deep parsing and implementation of redis stream advanced message queue [10000 words]
Go--- route filter
Summary of common functions in Oracle Database
多臺雲服務器的 Kubernetes 集群搭建
网络远程访问的方式使用树莓派
Renix Perf: IP网络性能测试工具及测试用例参数详解
让PyTorch训练速度更快,你需要掌握这17种方法