当前位置:网站首页>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.
边栏推荐
- org.apache.jasperException(could not initialize class org)
- TRACE32——常用操作
- 学习笔记12--路径-速度分解法之局部路径搜索
- R language ggplot2 visualization: use the ggmapplot function of the ggpubr package to visualize the MA plot (MA-plot), the font.legend parameter and the font.main parameter to set the title and legend
- R语言ggplot2可视化:使用ggpubr包的ggmaplot函数可视化MA图(MA-plot)、font.legend参数和font.main参数设置标题和图例字体加粗
- R language ggplot2 visualization: use the ggboxplot function of the ggpubr package to visualize the box plot, use the font function to customize the font size, color, style (bold, italic) of the legen
- Jmeter常用的十大组件
- AVH部署实践 (一) | 在Arm虚拟硬件上部署飞桨模型
- 基于极限学习机(ELM)进行多变量用电量预测(Matlab代码实现)
- Why don't you make a confession during the graduation season?
猜你喜欢

Getting Started with TextBlock Control Basic Tools Usage, Get Started

leetcode303 Weekly Match Replay

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

Browser's built-in color picker

梅克尔工作室-第一次

Ubantu专题4:xshell、xftp连接接虚拟机以及设置xshell复制粘贴快捷键

NC | 中国农大草业学院杨高文组揭示发现多因子干扰会降低土壤微生物多样性的积极效应...

最小费用最大流问题详解

RecyclerView的高效使用第一节

基于极限学习机(ELM)进行多变量用电量预测(Matlab代码实现)
随机推荐
看交互设计如何集成到Scrum敏捷流程中
TRACE32 - SNOOPer-based variable logging
女性服务社群产品设计
R语言计算时间序列数据的移动平均值(滚动平均值、例如5日均线、10日均线等):使用zoo包中的rollmean函数计算k个周期移动平均值
Delete the disk in good condition (recovery partition)
Synchronized and volatile interview brief summary
力扣:738.单调递增的数字
国内市场上的BI软件,到底有啥区别
OpenCV测量物体的尺寸技能 get~
R language ggplot2 visualization: use the ggboxplot function of the ggpubr package to visualize the grouped box plot, use the ggpar function to change the graphical parameters (caption, add, modify th
R language moves time series data forward or backward (custom lag or lead period): use the lag function in the dplyr package to move the time series data forward by one day (set the parameter n to a p
LeetCode二叉树系列——110.平衡二叉树
Excel快速对齐表格的中姓名(两个字姓名和三个字姓名对齐)
工程流体力学复习
Gorm—Go语言数据库框架
ASP.NET Core generates continuous Guid
华医网冲刺港股:5个月亏2976万 红杉与姚文彬是股东
11 pinia使用
MySQL database operations
The principle of hough transform detection of straight lines (opencv hough straight line detection)