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

Miguel Nunez
Miguel Nunez
3,266 Points

Different types of keys in each row in a MySQL table. Is it possible?

Could you have different key types with each other in the same table ? Like for example the first row is a primary key the second row is a unique key based and the third row is a foreign key based? Wrong ? Right ? Let me know please :-) ?

Caleb Kleveter
Caleb Kleveter
Treehouse Moderator 37,862 Points

Sorry Miguel, but I don't know the answer to this question. Hope you get an answer!

1 Answer

Miguel Nunez
Miguel Nunez
3,266 Points

Ok. What about each column having a different key type like a primary, unique key etc..?