本文用到的数据库如下: CREATE DATABASE exam; /创建部门表/ CREATE TABLE dept( deptno INT PRIMARY KEY, dname ), loc ) ); /创建雇员表/ CREATE TABLE emp( empno INT PRIMARY KEY, ename ), job ), mgr INT, hiredate DATE, sal ,), COMM ,), deptno INT, CONSTRAINT fk_emp FOREIGN KEY