当前位置:网站首页>MySQL中的alter table操作之add/modify/drop列
MySQL中的alter table操作之add/modify/drop列
2022-06-29 09:26:00 【一缕阳光a】
alter table的操作有增加列、删除列和修改列的长度等
create table t1 (c1 int primary key) engine = innodb;
// 增加一个列c2
alter table t1 add c2 varchar(16379);
drop table t1;
create table t1 (c1 int primary key, c2 varchar(50)) engine = innodb;
// 将列c2长度更改
alter table t1 modify column c2 varchar(16234);
drop table t1;
// 删除一个列c2
create table t1 (c1 int primary key, c2 varchar(50)) engine = innodb;
alter table t1 drop column c2;
drop table t1;边栏推荐
- 1021 deep root (25 points)
- JVM method return address
- qgis制图
- We can't tell the difference between distributed and cluster. Let's tell the story of two cooks cooking
- JNI.h说明
- 2019.11.13训练总结
- 2021 team programming ladder competition - Simulation Competition
- 函数指针、函数指针数组、计算器+转移表等归纳总结
- 2019.10.6训练总结
- Codeforces Round #645 (Div. 2)
猜你喜欢
随机推荐
Codeforces Round #645 (Div. 2)
Related problems of pointer array, array pointer and parameter passing
2019.10.6 training summary
QGIS mapping
這個開源項目超哇塞,手寫照片在線生成
Codeforces Round #657 Div. 2
PGP在加密技术中的应用
Reverse thinking - short story
Sixteen system counter and flow lamp
2019.11.13 training summary
September 17, 2020 gateway business process has two tasks: referer certification and non commodity Templating
L2-031 go deep into the tiger's den (25 points)
sympy的dsolve函数
完全二叉树的权值 递归做法 ——最后的编程挑战
Nacos registry cluster
蛇形填数
2019.10.30学习总结
L2-025 divide and rule (25 points)
2019icpc上海区域赛赛后总结
2019.10.6训练总结









