SQl table creation showing error, pls look into this
CodePudding user response:
Make sure the dept table that the fk is referencing exists.
If so, try creating the table without constraints and add them in after using an ALTER statement.
CodePudding user response:
It is because your referencing a foreign of table Dept which does not exits.
Please create dept Table first and then create Employee table.