当前位置:网站首页>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;边栏推荐
- Talk about threads and concurrency
- Seaweedfs security configuration
- 指针数组、数组指针和传参的相关问题
- Codeforces Round #659 (Div. 2)
- Download control 1 of custom control (downloadview1)
- Analyze in detail the PBOT mining virus family behavior and the principle of exploited vulnerabilities, and provide detailed protection suggestions for the blue army
- 函数指针、函数指针数组、计算器+转移表等归纳总结
- HDU 6778 Car (分组枚举-->状压 dp)
- Simulation problem of two stacks
- 2019.10.23训练总结
猜你喜欢

Simulation problem of two stacks

Alibaba cloud firewall configuration, multiple settings (iptables and firewall)

函数指针、函数指针数组、计算器+转移表等归纳总结

Dev使用过程中的基本操作

Text of the basic component of the shutter

Download control 1 of custom control (downloadview1)

Using rancher to build kubernetes cluster

Function pointer, function pointer array, calculator + transfer table, etc

Sixteen system counter and flow lamp

Recurrence of vulnerability analysis for Cisco ASA, FTD and hyperflex HX
随机推荐
JNI. H description
MySQL中innodb_page_cleaners详解
520 diamond Championship 2021
Picture verification code control
SymPy Tutorial(译)
520 钻石争霸赛 2021
Codeforces Round #645 (Div. 2)
Summary after the 2009 ICPC Shanghai regional competition
IIS服务器相关错误
HDU 6778 car (group enumeration -- > shape pressure DP)
Codeforces Round #652 (Div. 2)
PGP在加密技术中的应用
1147 Heaps (30 分)
Acwing271 [teacher Yang's photographic arrangement] [linear DP]
GridView of basic component of shutter
The Stones Game【取石子博弈 & 思维】
MySQL innodb每行数据长度的限制
云主机端口扫描
子串分值-超详细版——最后的编程挑战
Text of the basic component of the shutter