当前位置:网站首页>The differences of several deletions in SQL
The differences of several deletions in SQL
2022-07-24 16:32:00 【Weiwei became a father】
Drop
drop Can be used to delete a database (drop database Database name )、 Delete data table ( use Database name drop table Data sheet 1 name , Data sheet 2 name ) Or delete data table fields (use Database name alter table Data table name drop column Field name ( Column name )).
It is worth noting that :drop Statement will delete the structure of the table 、 Bound by dependence (constrain), trigger (trigger), Indexes (index); Stored procedures that depend on the table / The function will keep , But it became invalid state .
Truncate
Truncate Used to delete data in the data table , Only the data in the data table , Don't delete the table ( truncate table Data table name ).
Delete
Delete : Delete rows from a data table , You can delete a line , You can also delete all rows without deleting the data table ( Delete a line :Delete from Data table name where Column name = value ).
边栏推荐
- With regard to performance testing, dry goods hit "suggestions collection"
- 1184. Distance between bus stops
- Solve the timeliness problem caused by Eureka's default cache configuration
- Why should we launch getaverse?
- 解决Eureka默认缓存配置导致时效性问题
- Jenkins cli command details
- QT keyboard event (I) -- detect key input
- EF data migration
- Servlet框架(servlet+jsp)+Mysql实现的增删改查+分页(功能包学生信息录入、学生信息增删改查、分页等)
- Ligerui table control grid changes the color of rows (cells) according to the content
猜你喜欢

EF LINQ Miscellany

Servlet framework (servlet+jsp) + addition, deletion, modification and query + paging implemented by MySQL (function package student information entry, addition, deletion, modification and query of st
[email protected]"/>ZBar source code analysis - img_ scanner. c | [email protected]

C TCP client form application asynchronous receiving mode

Jupyter uses tips

剑指 Offer 48. 最长不含重复字符的子字符串

【南京农业大学】考研初试复试资料分享

REST风格

Why should we launch getaverse?

Complete guide on how to prevent cross site scripting (XSS) attacks
随机推荐
ArcGIS create vector
[LeetCode]38.报数——题解(执行用时击败91% ,内存消耗击败 97%)
Disassembly of Samsung Galaxy fold: the interior is extremely complex. Is the hinge the main cause of screen damage?
[leetcode]38. counting - problem solving (execution time beat 91%, memory consumption beat 97%)
【机器学习基础】——另一个视角解释SVM
Complete guide on how to prevent cross site scripting (XSS) attacks
leetcode:162. 寻找峰值【二分寻找峰值】
15、ARM嵌入式系统:如何用PC调试单板
Causes and solutions of QT signal and slot connection failure
thinkphp3.2.5无法跳转到外部链接
安全的证券公司有哪些?我想在手机上买股票
MySQL converts strings to numeric types and sorts them
ZCMU--5083: ly的数对(C语言)
Jupyter uses tips
EMQ Yingyun technology was listed on the 2022 "cutting edge 100" list of Chinese entrepreneurs
QT keyboard event (I) -- detect key input
Huawei Kirin 985 mass production in the third quarter: TSMC 7Nm EUV process, integrated 5g baseband!
Getting started with ARP
[leetcode]75. color classification - problem solving (execution time beat 90%, memory consumption beat 78%)
[technology] chat room demo of uniapp