当前位置:网站首页>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.
边栏推荐
- Gorm—Go语言数据库框架
- 安装Xshell并使用其进行Ymodem协议的串口传输
- json到底是什么(c# json)
- R语言ggplot2可视化:使用ggpubr包的ggmaplot函数可视化MA图(MA-plot)、font.legend参数和font.main参数设置标题和图例字体加粗
- QGIS 加载WMS数据,重新投影
- Linux check redis version (check mongodb version)
- 腾讯云部署----DevOps
- 浏览器自带的拾色器
- 使用 Chainlink Keepers 实现智能合约函数的自动化执行
- [MySQL] Mysql paradigm and the role of foreign keys
猜你喜欢
随机推荐
Ubantu专题5:设置静态ip地址
MySQL database operations
SIGABRT 报错时的注意事项和解决方法
ASP.NET Core generates continuous Guid
Efficient use of RecyclerView Section 2
Selenium自动化中无头浏览器的应用
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
分成两栏后文字顺序混乱的问题解决【写期刊论文时】
Why is the field of hacking almost filled with boys?
what exactly is json (c# json)
org.apache.jasperException(could not initialize class org)
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
Kubernetes原理剖析与实战应用手册,太全了
基于最小二乘法和SVM从天气预报中预测太阳能发电量(Matlab代码实现)
hough变换检测直线原理(opencv霍夫直线检测)
思路迪医药冲刺港股:5个月亏2.9亿 泰格医药与先声药业是股东
定时器的类型
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语言计算时间序列数据的移动平均值(滚动平均值、例如5日均线、10日均线等):使用zoo包中的rollmean函数计算k个周期移动平均值
vb中如何连接mysql_vb怎么连接数据库「建议收藏」