当前位置:网站首页>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.
边栏推荐
- 11 pinia use
- TRACE32 - SNOOPer-based variable logging
- Gorm—Go语言数据库框架
- Vb how to connect mysql_vb how to connect to the database collection "advice"
- DBeaver连接MySQL 8.x时Public Key Retrieval is not allowed 错误解决
- Excel quickly aligns the middle name of the table (two-word name and three-word name alignment)
- ES6 类
- 为什么黑客领域几乎一片男生?
- 为什么毕业季不要表白?
- Word table to Excel
猜你喜欢

Tencent Cloud Deployment----DevOps

WPF project - basic usage of controls entry, you must know XAML

Internet banking stolen?This article tells you how to use online banking safely

NC | 斯坦福申小涛等开发数据可重复分析计算框架TidyMass

STM32(十)------- SPI通信

The use of border controls

TRACE32——常用操作

C语言”三子棋“升级版(模式选择+AI下棋)

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

学习笔记12--路径-速度分解法之局部路径搜索
随机推荐
Linux check redis version (check mongodb version)
删除 状态良好(恢复分区)的磁盘
QGIS 加载WMS数据,重新投影
7. Summary of common interview questions
LeetCode二叉树系列——110.平衡二叉树
The R language ggstatsplot package ggbarstats function visualizes bar charts, and adds hypothesis test results (including sample number, statistics, effect size and its confidence interval, significan
STM32(十)------- SPI通信
R language test whether the sample conforms to normality (test whether the sample comes from a normally distributed population): shapiro.test function tests whether the sample conforms to the normal d
How useful is four-quadrant time management?
工程流体力学复习
RecyclerView高效使用第三节
button控件的使用
mysql black window ~ build database and build table
TRACE32——C源码关联
OPPO在FaaS领域的探索与思考
WPF项目--控件入门基础用法,必知必会XAML
Gorm—Go language database framework
力扣:738.单调递增的数字
Word表格转到Excel中
Matlab矩阵基本操作(定义,运算)