1 Star 0 Fork 7

张文建/springcloud

forked from chao-work/springcloud 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
database.sql 1.93 KB
一键复制 编辑 原始数据 按行查看 历史
chao 提交于 2021-07-21 17:25 . 123
# 数据库1
create database db01;
use db01;
create table dept(
deptno bigint primary key not null auto_increment,
dname varchar(60),
db_source varchar(60)
);
alter table dept comment ='部门表';
insert into dept (dname, db_source) value ('开发部',database());
insert into dept (dname, db_source) value ('人事部',database());
insert into dept (dname, db_source) value ('财务部',database());
insert into dept (dname, db_source) value ('市场部',database());
insert into dept (dname, db_source) value ('运维部',database());
select * from db01.dept;
# 数据库2
create database db02;
use db02;
create table dept(
deptno bigint primary key not null auto_increment,
dname varchar(60),
db_source varchar(60)
)ENGINE =INNODB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT ='部门表';
insert into dept (dname, db_source) value ('开发部',database());
insert into dept (dname, db_source) value ('人事部',database());
insert into dept (dname, db_source) value ('财务部',database());
insert into dept (dname, db_source) value ('市场部',database());
insert into dept (dname, db_source) value ('运维部',database());
select * from db02.dept;
# 数据库3
create database db03;
use db03;
create table dept(
deptno bigint primary key not null auto_increment,
dname varchar(60),
db_source varchar(60)
)ENGINE =INNODB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT ='部门表';
insert into dept (dname, db_source) value ('开发部',database());
insert into dept (dname, db_source) value ('人事部',database());
insert into dept (dname, db_source) value ('财务部',database());
insert into dept (dname, db_source) value ('市场部',database());
insert into dept (dname, db_source) value ('运维部',database());
select * from db03.dept;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhang_wenjian123/springcloud.git
git@gitee.com:zhang_wenjian123/springcloud.git
zhang_wenjian123
springcloud
springcloud
master

搜索帮助