Mysql语法收集


增加主键id并自增
mysql
alter table hwinfo add id int not null primary key Auto_increment  first;
调整字段顺序
mysql
ALTER table hwinfo change `test1` `tese1` varchar(100) after `test2`
#将test1字段调整到test2后面

评论
表情 | 预览
快来做第一个评论的人吧~
Powered By Valine
v1.3.10