hirdata datatime? 是datetime.另外,最好显式指定键/索引的名称,便于以后管理。如 CONSTRAINT `fk_emp_deptno` FOREIGN KEY (`deptno`) REFERENCES `dept` (`deptno`)