当前位置:网站首页>Delete table data or clear table
Delete table data or clear table
2022-07-31 15:22:00 【Xiao Liu learns Android】
Summary of ways to delete records:
- Delete by condition: DELETE FROM tb_name [WHERE options] [ [ ORDER BY fields ] LIMIT n ]
- Delete all (table empty, including auto increment counter reset): TRUNCATE tb_name
Note:
truncate table is to clear the data in the data table and reset the auto-increment counter.But the table is still there, the data table is not deleted.
边栏推荐
猜你喜欢

RecyclerView的高效使用第一节

OpenCV测量物体的尺寸技能 get~

The use of border controls

看交互设计如何集成到Scrum敏捷流程中

AVH Deployment Practice (1) | Deploying the Flying Paddle Model on Arm Virtual Hardware

QGIS 加载WMS数据,重新投影

华医网冲刺港股:5个月亏2976万 红杉与姚文彬是股东

乡村基冲刺港交所:5个月期内亏2224万 SIG与红杉中国是股东

基于极限学习机(ELM)进行多变量用电量预测(Matlab代码实现)

LeetCode二叉树系列——110.平衡二叉树
随机推荐
RecyclerView高效使用第三节
微信聊天记录中搜索红包
力扣:56. 合并区间
Web自动化实战——Selenium4(自动化测试环境的搭建)
ES6 类
TRACE32——C源码关联
工程力学复习资料
RecyclerView的高效使用第一节
名创优品斥资6.95亿购买创始人叶国富所持办公楼股权
Destruction order of thread_local variables
Word表格转到Excel中
模板与泛型编程值typelist实现
org.apache.jasperException(could not initialize class org)
mysql黑窗口~建库建表
力扣:714. 买卖股票的最佳时机含手续费
R语言ggplot2可视化:使用ggpubr包的ggboxplot函数可视化分组箱图、使用ggpar函数改变图形化参数(caption、添加、修改可视化图像的题注、脚注内容)
工程流体力学复习
修改SQL语言实现Mysql 多表关联查询优化
TRACE32——常用操作
TCP详解