当前位置:网站首页>The database empties the table data and makes the primary key start from 1
The database empties the table data and makes the primary key start from 1
2022-07-25 20:26:00 【Shallow YT】
The database empties the table data and makes the primary key from 1 Start ( For work records only )
If you use navicat , Right click the table name , The difference between empty table and truncated table is :
Empty table empty table data , When adding data , The last data before the primary key is still not deleted begins to increase .
Truncate the table and clear the table data , When adding data , Primary key from 1 Start , Equivalent to the following two SQL.
- SQL1( Use truncate Clear all data. The primary key self growth is from 1 Start ( More efficient )
truncate table " Table name - SQL2( First step : Clear the table data first The second step : Set the self growth of the table to 1)
1、DELETE FROM Table name ;
2、ALTER TABLE Table name AUTO_INCREMENT=1;
边栏推荐
- Increase swap space
- During the interview, I was asked how to remove the weight of MySQL, and who else wouldn't?
- CarSim simulation quick start (XIV) - CarSim Simulink joint simulation
- wallys//wifi6 wifi5 router IPQ6018 IPQ4019 IPQ4029 802.11ax 802.11ac
- Chapter VI modified specification (SPEC) class
- [advanced mathematics] [1] function, limit, continuity
- tga文件格式(波形声音文件格式)
- PMP practice once a day | don't get lost in the exam -7.25
- RF, gbdt, xgboost feature selection methods "recommended collection"
- 股票软件开发
猜你喜欢

Recommended system topic | Minet: cross domain CTR prediction

Prescan quick start to master the special functions of prescan track editing in lecture 18

Learn FPGA from the bottom structure (16) -- customization and testing of pll/mmcm IP

FanoutExchange交换机代码教程
![[today in history] July 17: Softbank acquired arm; The first email interruption; Wikimedia International Conference](/img/0f/8ce2d5487b16d38a152cfd3ab454bb.png)
[today in history] July 17: Softbank acquired arm; The first email interruption; Wikimedia International Conference

Rainbow plug-in extension: monitor MySQL based on MySQL exporter

9.< tag-动态规划和子序列, 子数组>lt.718. 最长重复子数组 + lt.1143. 最长公共子序列
![[today in history] July 7: release of C; Chrome OS came out;](/img/a6/3170080268a836f2e0973916d737dc.png)
[today in history] July 7: release of C; Chrome OS came out; "Legend of swordsman" issued

Jmeter——接口测试

Vivo official website app full model UI adaptation scheme
随机推荐
Automated testing ----- selenium (I)
Myormframeworkjdbc review and problem analysis of user-defined persistence layer framework, and thought analysis of user-defined persistence layer framework
Mobile web layout method
During the interview, I was asked how to remove the weight of MySQL, and who else wouldn't?
[today in history] June 28: musk was born; Microsoft launched office 365; The inventor of Chua's circuit was born
"Share" devaxpress asp Net v22.1 latest version system environment configuration requirements
[today in history] July 1: the father of time-sharing system was born; Alipay launched barcode payment; The first TV advertisement in the world
securecrt乱码解决方法[通俗易懂]
【NOI模拟赛】字符串匹配(后缀自动机SAM,莫队,分块)
火山引擎项亮:机器学习与智能推荐平台多云部署解决方案正式发布
【云原生 | 从零开始学Kubernetes】八、命名空间资源配额以及标签
wallys//wifi6 wifi5 router IPQ6018 IPQ4019 IPQ4029 802.11ax 802.11ac
[today in history] July 5: the mother of Google was born; Two Turing Award pioneers born on the same day
[today in history] July 13: the father of database passed away; Apple buys cups code; IBM chip Alliance
CarSim simulation quick start (16) - ADAS sensor objects of CarSim sensor simulation (2)
Jmeter——接口测试
Recommended system topic | Minet: cross domain CTR prediction
Summarize the level of intelligent manufacturing discussion [macro understanding]
[today in history] June 29: SGI and MIPS merged; Microsoft acquires PowerPoint developer; News corporation sells MySpace
Docker builds redis cluster