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

Keys and Auto-Incrementing - missing id 2?

!(http://imgur.com/KTqnUiW "This screenshot") from about 6:03 on the video shows the list of auto-incremented id numbers from the genres table. However, there is no 2 - it goes 1,3,4. Curious to know if this is a result of the failed attempt to add another 'sci fi', and whether mySQL assigns this failed attempt an auto-incremented id number anyway?

1 Answer

It could also be from deleting a record before showing it on the video.