mysql SQL语句积累

2023年 4月 21日 17.1k 0

--重命名表 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 u

--重命名表 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;

相关文章

Oracle如何使用授予和撤销权限的语法和示例
Awesome Project: 探索 MatrixOrigin 云原生分布式数据库
下载丨66页PDF,云和恩墨技术通讯(2024年7月刊)
社区版oceanbase安装
Oracle 导出CSV工具-sqluldr2
ETL数据集成丨快速将MySQL数据迁移至Doris数据库

发布评论