Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools Database Foundations Joining Relational Data Between Tables in SQL Keys and Auto-Incrementing Values

" . . so we need to use the keyword 'REFERENCES' and then . . "

uhmm . . I passed the three-part challenge but was left troubled by task 3 of 3. The fact that the documentation makes no mention of this mandatory REFERENCES keyword in adding a constraint is a bit disconcerting . . guiding comments ?

1 Answer

Steven Parker
Steven Parker
218,487 Points

This requirement is discussed at 9:19 in the video.

If you mean the online documentation, If you follow any of the references to the CREATE TABLE page, you can find reference_definition explained there.

But I would agree that the ALTER TABLE page could use this added to its definition section:

reference_definition:
    (see CREATE TABLE options)

Perhaps you should submit this suggestion to the folks at MySql for inclusion in a manual page update!