当前位置:网站首页>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.
边栏推荐
- 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
- mongo enters error
- 《微信小程序-进阶篇》Lin-ui组件库源码分析-Icon组件
- 工程水文学名词解释总结
- WPF项目--控件入门基础用法,必知必会XAML
- leetcode303场周赛复盘
- 使用 GraphiQL 可视化 GraphQL 架构
- [CUDA study notes] First acquaintance with CUDA
- Jmeter常用的十大组件
- JVM parameter analysis Xmx, Xms, Xmn, NewRatio, SurvivorRatio, PermSize, PrintGC "recommended collection"
猜你喜欢

Getting Started with TextBlock Control Basic Tools Usage, Get Started

深入浅出边缘云 | 4. 生命周期管理

WPF项目--控件入门基础用法,必知必会XAML

【MySQL】Mysql范式及外键作用

Node实现数据加密

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

RecyclerView的高效使用第一节

网银被盗?这篇文章告诉你如何安全使用网银

TRACE32——常用操作

TRACE32 - C source code association
随机推荐
Why is the field of hacking almost filled with boys?
Use of radiobutton
JVM参数解析 Xmx、Xms、Xmn、NewRatio、SurvivorRatio、PermSize、PrintGC「建议收藏」
ASP.NET Core 产生连续 Guid
使用 Chainlink Keepers 实现智能合约函数的自动化执行
[CUDA study notes] First acquaintance with CUDA
Efficient use of RecyclerView Section 1
Insert into data table to insert data
How useful is four-quadrant time management?
Female service community product design
SQL、HQL、JPQL 到底有什么区别
《微信小程序-进阶篇》Lin-ui组件库源码分析-Icon组件
Emmet 语法
Delete the disk in good condition (recovery partition)
mongo进入报错
力扣:738.单调递增的数字
ES6 类
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
删除 状态良好(恢复分区)的磁盘
R语言检验样本是否符合正态性(检验样本是否来自一个正态分布总体):shapiro.test函数检验样本是否符合正态分布(normality test)