是不是写反了,应该是 alter table Employees add constraint fk_employees foreign key(DepartmentID) references Departments(DepartmentID)
foreign key reference 的必须是主键或者外键你看下Employees(DepartmentID)怎么定义的,是不是有问题