这样写的表结构没问题吗?
我认为:dept是父表,employee是子表
dept.d_no是dept的主键,employee.dept_no是employee的外键,不因该写在employee表里吗?
我觉得得是这样设计
大佬门你们觉得有问题吗,哪张图是真正确的?
create table employee
(
e_no int(11) not null comment '员工编号',
e_name varchar(50) not null comment '员工姓名',
e_gender char(2) comment '员工性别',
dept_no int(11) not null comment '部门编号',
e_job varchar(50) not null comment '