- 相关推荐
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语句积累参考】相关文章:
MySQL导出导入SQL文件命令方法03-30
oracle的sql语句01-21
SQL语句的理解原则03-30
SQL查询语句大全04-25
sql语句的各种模糊查询03-30
SQL语句中的正则表达示03-18
Oracle的sql语句模拟试题及答案03-09
SQL优化大全03-08
调节和优化MySQL安装的技巧03-10