一.多表查询 准备工作:创建两张表,部门表(department).员工表(employee),代码和表格如下: # 创建表 create table department( id int, name ) ); create table employee( id int primary key auto_increment, name ), gender enum('male','female') not null default 'male', age int, dep_id int ); #…