当前位置:网站首页>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 ];
边栏推荐
- Application of tactile intelligent sharing-rk3568 in financial self-service terminal
- Sigmoid function sigmoid derivation
- VGA display of de2-115 FPGA development board
- [world history] Episode 1: people in the Stone Age
- Mise en place d'un Cluster kubernets avec plusieurs serveurs Cloud
- 深入理解深度神经网络背后的数学(Mysteries of Neural Networks Part I)
- untiy强制刷新UI
- Is it safe for Guosen Securities to open a stock account? Excuse me?
- As a software testing engineer, how do you think to ensure software quality?
- Shell built-in commands
猜你喜欢

Kubernetes cluster construction of multiple ECS

‘nvidia-smi‘ 不是内部或外部命令,也不是可运行的程序或批处理文件

Les neuf caractéristiques de la parole et les neuf temps en anglais

【Proteus仿真】51单片机+DS1302+lcd1602显示

Haven't you understood the microservice data architecture transaction management +acid+ consistency +cap+base theory? After reading it, you can completely solve your doubts

第一次读 “Clean” 系列,并没有觉得这是一本多好的书

Explain the possible memory leaks caused by the handler at one time and the solutions | the developer said · dtalk

Installation and removal of MySQL under Windows

Settings the PC must be turned on

对白:推荐系统快速入门路线及各知识点总结
随机推荐
Gorm-- search you don't know
To make pytorch faster, you need to master these 17 methods
如何在 2022 年为 Web 应用程序选择技术堆栈
阻止深度神经网络过拟合(Mysteries of Neural Networks Part II)
SSH secret free function for # scripting
TSDB在民机行业中的应用
Nr-arfcn and channel grid, synchronous grid and GSCN
请问通达信股票开户是安全的吗?
Is it safe for Guosen Securities to open an account?
Logistic Regression VS Linear Regression
分享自己平时使用的socket多客户端通信的代码技术点和软件使用
解决报错:Creating window glfw ERROR: GLEW initalization error: Missing GL version
关于STM32使用LAN8720A插拔网线重连
Preventing overfitting of deep neural networks (mysteries of neural networks Part II)
untiy强制刷新UI
BACnet gateway bl103 for building automation
[world history] Episode II: Dawn of civilization
How to choose a technology stack for web applications in 2022
What are the red lines of open source that should not be trodden on?
Error1822 and error1824 are displayed in the database