当前位置:网站首页>mysql基础篇之mysql在已有表中添加自动增加的主键(或任意一个字段)
mysql基础篇之mysql在已有表中添加自动增加的主键(或任意一个字段)
2022-06-10 19:32:00 【Rulyc】
1、语法:
alter table student_info add id int(11) PRIMARY KEY AUTO_INCREMENT;
如果你是想添加任意字段,
alter 表名 student_info add 字段名 字段类型
添加之前:
添加之后:
边栏推荐
- knife4j配置使用直接拷贝即可
- Qualcomm qc2.0 fast charging intelligent identification IC fp6719
- 割舍绳子/整数分割
- CVPR 2022丨清华大学提出:无监督域泛化 (UDG)
- Cloud native community boss blog
- 【FAQ】运动健康服务REST API接口使用过程中常见问题和解决方法总结
- 获取列表中最大最小值的前n个数值的位置索引的四种方法
- 功耗开发经验分享:设计功耗大板
- The national advanced computing industry innovation (Yichang) center was officially launched and jointly operated by Zhongke Shuguang and Shengzhe technologies
- 补水仪108K加湿器开发方案_单片机_NY8A051F_单片机开发设计开发
猜你喜欢

Kp522201a adopts SOT23-6 encapsulated 4.5V to 17V input, 2A output, 600kHz synchronous step-down converter

「Bug」问题分析 RuntimeError:which is output 0 of ReluBackward0

canvas 高级功能(中)

移动端渲染原理浅析

Basic instructions for ads and AXD

京东发布基于张量网络加速的大规模、分布式量子机器学习平台TeD-Q

canvas 高级功能(上)

It took 2 years, 442 authors and 132 institutions! Google released the new benchmark big bench for language model evaluation. 204 tasks comprehensively evaluated the language model ability, with paper

MySQL数据库基础

How to use the low code platform of the Internet of things for worksheet management?
随机推荐
终于有人说清楚了Cookie、Session、Token的区别。详解,面试题。
FS4521恒压线性充电IC
Knife4j configuration can use direct copy
Knowledge map / relationship visualization
Fs2117 boost IC output 5v2.4a synchronous rectification
AttributeError: module ‘collections‘ has no attribute ‘MutableMapping‘
Solve the problem that the idea automatically becomes * when there are more than 5 identical packages
H5 van-popup全屏弹窗,模拟页面回退效果,支持左上角返回按钮,适用物理返回,侧滑与底部返回键
mysql服务启动失败
Cloud native community boss blog
Performance test plan (plan) template
Esp8266 system environment setup
Mixin -- mixed
软件定义边界(SDP)
CVPR 2022丨清华大学提出:无监督域泛化 (UDG)
I drew several exquisite charts with plotly, which turned out to be beautiful!!
监控易打造“准生态”格局,赋能信创“平替”
Enhance the target method with surround notifications - extract notes
Recording a super Oolong mental retardation bug may help people like me eat for free
腾讯云数据库TDSQL-大咖论道 | 基础软件的过去、现在、未来