Skip to content
Advertisement

Which keywords did I missed on the following tables?

My problem: I get the same error on the tables: Tasks, TimeSheet, TimeSheetHour.

I still don’t have any idea on what keywords did I missed.

Here is the error I got in Tasks table: (same with other tables)

May I know which keywords did I missed on the following tables?

Advertisement

Answer

The keyword is REFERENCES not REFERENCE.

Then you have constraints with duplicate names IdProject_FK.

Then you have foreign key constraints where you do not specify the table being referenced.

I.e.:

Should be:

or, without the braces and the explicit column name:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement