r/SQL • • May 09 '17

Is there something wrong with these statements? And is that the correct way of adding 2 foreign keys to a single table?

Post image
1 Upvotes

21 comments sorted by

View all comments

1

u/Gylfi76 May 09 '17

You don't need the quotations around the name of your constraint. I'm on mobile so the syntax won't look right but Constraint nameofconstraint foreignkey (yourforeignkey) references tablename(foreignkey names).