当前位置:网站首页>Automatic database growth
Automatic database growth
2022-06-30 11:29:00 【TYUT ljk】
Automatic growth
- Concept : If a column is numeric , Use auto_increment Can be used to complete the automatic growth of value
- Realization : When creating a table , Add primary key constraint , And complete the self growth of the primary key
CREATE TABLE stu(
id INT PRIMARY KEY AUTO_INCREMENT
);
Add autogrow
ALTER TABLE stu MODIFY id AUTO_INCREMENT
- Be careful : Automatic growth is only related to the immediately preceding value
- Delete auto growth
ALTER TABLE stu MODIFY id INT;
边栏推荐
- Summer vacation study record
- ESP32-C3入门教程 IoT篇⑤——阿里云 物联网平台 EspAliYun RGB LED 实战之批量生产的解决方案
- [applet practice series] Introduction to the registration life cycle of the applet framework page
- 【无标题】
- Flutter 从零开始 004 按钮组件
- A man is a Book
- 暑假学习记录
- The latest collection of arouter problems
- SQL必需掌握的100个重要知识点:更新和删除数据
- 阿里云李飞飞:中国云数据库在很多主流技术创新上已经领先国外
猜你喜欢

It's time for the kotlin coroutine to schedule thread switching to solve the mystery

The operation and maintenance security gateway (Fortress machine) of Qiming star group once again won the first place!

优惠券种类那么多,先区分清楚再薅羊毛!

启明星辰集团运维安全网关(堡垒机)再次夺得榜首!

The reasoning delay on iphone12 is only 1.6 MS! Snap et al. Analyzed the transformer structure latency in detail, and used NAS to find out the efficient network structure of mobile devices

go语言defer

Qualcomm released the "magic mirror" of the Internet of things case set, and digital agriculture has become a reality

语音识别-基础(一):简介【语音转文本】

The life, working principle and application of electrochemical oxygen sensor

Summer vacation study record
随机推荐
LVGL 8.2 re-coloring
LVGL 8.2 Simple Image button
创建型-配置工厂
如何通过GDB分析Native Crash
Qualcomm released the "magic mirror" of the Internet of things case set, and digital agriculture has become a reality
DataX JSON description
LVGL 8.2 menu from a drop-down list
Le talent scientifique 丨 dessins animés qu'est - ce qu'erdma?
PointDistiller:面向高效紧凑3D检测的结构化知识蒸馏
Kongsong (ICT Institute) - cloud security capacity building and trend in the digital age
Oracle netsuite helps TCM bio understand data changes and make business development more flexible
数字化不是试出来,而是蹚出来的|行知数字中国 × 富士康史喆
SQL必需掌握的100个重要知识点:组合查询
R语言查看版本 R包查看版本
The latest collection of arouter problems
Esp32-c3 introductory tutorial basic part ⑫ - mass production burning device configuration and serial number, NVS partition confirmation, NVS partition generation program, CSV to bin
阿里云李飞飞:中国云数据库在很多主流技术创新上已经领先国外
Create - configure factory
100 important knowledge points that SQL must master: summary data
Iptables target tproxy