- 相关推荐
mysql SQL语句积累参考
--重命名表
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 restrict on 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 var30) character set utf8 collate utf8_unicode_ci not null;
--增加列
alter table cms_flash add name var30) not null unique;
【mysql SQL语句积累参考】相关文章:
oracle的sql语句06-18
SQL查询语句大全09-22
sql外键语句示范06-21
使用sql语句查询日期的方法09-17
Oracle的sql语句模拟试题及答案08-27
小升初语文知识点积累参考06-30
SQL优化大全08-26
怎么打开sql文件06-22
调节和优化MySQL安装的技巧08-30
2017年sql考试试题05-13