当前位置:网站首页>MySQL sets auto increment for existing primary keys
MySQL sets auto increment for existing primary keys
2022-07-26 13:49:00 【Teenagers】
First step : to id increase auto_increment attribute
ALTER TABLE Table name MODIFY id int(11) auto_increment;
The second step : Set the initial value for self increment
ALTER TABLE Table name auto_increment=10000;
边栏推荐
- Ultimate doll 2.0 | cloud native delivery package
- 多态案例-制作饮品
- 【OAuth2】八、OAuth2登录的配置逻辑-OAuth2LoginConfigurer和OAuth2ClientConfigurer
- [oauth2] VII. Wechat oauth2 authorized login
- Pass parameters to the routing component
- 历时15年、拥有5亿用户的飞信,彻底死了
- 基址寻址和变址寻址区别
- With frequent data leakage and deletion events, how should enterprises build a security defense line?
- 万字长文,浅谈企业数字化建模蓝图
- Golang port scanning design
猜你喜欢

Tianjin emergency response Bureau and central enterprises in Tianjin signed an agreement to deepen the construction of emergency linkage mechanism

Unicode file parsing methods and existing problems

官宣!艾德韦宣集团与百度希壤达成深度共创合作

Docker swarm cluster builds highly available MySQL active and standby

二叉树的层序遍历(C语言实现)

Re bet overseas: Alibaba, jd.com and SF again fight for "internal power"

The shell script in Jenkins fails to execute but does not exit by itself

Why does WPS refuse advertising?

The last time I heard about eBay, or the last time

Analysis on the current situation and optimization strategy of customer experience management in banking industry
随机推荐
MySQL's practice of SQL analysis and optimization from the index principle
421. 数组中两个数的最大异或值
Canvas upload image Base64 with cropping function jcrop.js
Abstract factory and its improvement examples
冒泡排序的时间复杂度分析
I. creation and constraint of MySQL table
POM file details
上一次听到易趣,还是上一次
With 8 years of product experience, I have summarized these practical experience of continuous and efficient research and development
Time complexity and space complexity
向路由组件传递参数
The shell script in Jenkins fails to execute but does not exit by itself
数据泄漏、删除事件频发,企业应如何构建安全防线?
WPS凭什么拒绝广告?
飞盘,2022年“黑红”顶流
Use the requests library to crawl web pages
2022年,我们只用一个月就“送走”了这么多互联网产品
Win11+VS2019配置YOLOX
Analysis on the current situation and optimization strategy of customer experience management in banking industry
Docker swarm cluster builds highly available MySQL active and standby