随笔- 310  文章- 1  评论- 0  阅读- 86066 
1
2
3
4
5
6
7
alter table test modify column `code` varchar(200);
alter table test change ret rets varchar(100) DEFAULT NULL COMMENT '返回值'--修改字段名
ALTER TABLE test ADD `remark` varchar(500) DEFAULT '' COMMENT '备注';
ALTER TABLE test drop `name`; --删除字段
alter table test drop primary key,add primary key (`id`); --修改主键
alter table test drop index `id`;
alter table test add unique key `test_key` (`addr`,`name`);

  

 posted on   boye169  阅读(14)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
· 如何调用 DeepSeek 的自然语言处理 API 接口并集成到在线客服系统
点击右上角即可分享
微信分享提示