Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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..?