When adding a foreign key gets an error:
Error Code: 1005. Can't create table 'itest.#sql-784_18f' (errno: 150)
I use the syntax:
There is no table itest as is the name of the database. I do not understand this error. What is it?
Error Code: 1005. Can't create table 'itest.#sql-784_18f' (errno: 150)
I use the syntax:
Code:
ALTER TABLE INTR ADD FOREIGN KEY (USER) REFERENCES USERS(ID)