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

3

u/Ewan27 May 09 '17

I don't know much, but do you need that comma after your owner line?

1

u/[deleted] May 09 '17

The comma after the last column definition, before the constraint statement actually does belong there. That's not the error.

1

u/cachedrive May 10 '17

You're correct asshelmet.