曹代腾,财迷,苏红娘
--重命名表
rename table t_softwareport to software_port;
--建立外键
alter table software_port add constraint fk_software_port_softwareprocessid foreign key (softwareprocessid) references software_process (id) on delete restrict on update restrict;
--删除列
alter table software_type drop column upid, drop column orderid;
--修改列名
alter table software_process change software_id softwareid int(11) not null;
--更改列编码
alter table cms_contentbody modify column offical_site_name varchar(30) character set utf8 collate utf8_unicode_ci not null;
--增加列
alter table cms_flash add name varchar(30) not null unique;
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!!
点击进行留言回复
相关文章:
-
-
-
-
-
-
-
-
-
-
-
mysql事务管理操作详解
本文实例讲述了mysql事务管理操作。分享给大家供大家参考,具体如下:本文内容: 什么是事务管理 事务管理操作 回滚点 默认的事务管理首发日期:2018...
[阅读全文]
网友评论