我不知道为什么这个错误信息一直出现在我试图解决的时候......
CREATE TABLE department(
depid varchar(10) not null,
depname varchar(100) not null,
depdes varchar(1000) not null,
depemp int,
CONSTRAINT PRIMARY KEY (depid)
);
CREATE TABLE employee(
empid varchar(10) not null,
empname varchar(50) not null,
NIC varchar(20) not null,
empaddress varchar(100) not null,
empdob date not null,
gender varchar(10),
depid varchar(10) not null,
CONSTRAINT PRIMARY KEY (empid),
CONSTRAINT FOREIGN KEY(depid) REFERENCES department(depid)
ON UPDATE CASCADE ON DELETE CASCADE
);