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 trialSusitha Herath Mudiyanselage
4,957 PointsIt's not passing1
Insert a new row into the movies table where the title is the string 'Aliens' and the year is an integer 1986.
my answer INSERT INTO movies SET title='Aliens', year=1986
1 Answer
Gergő Bogdán
6,664 Pointstry this:
INSERT INTO movies(title,year) VALUES('Aliens', 1986)
The correct syntax is: insert into [tableName] (optional column names) values (x,y,z...)
Susitha Herath Mudiyanselage
4,957 PointsSusitha Herath Mudiyanselage
4,957 PointsThanks very much it worked!