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

PHP

Susitha Herath Mudiyanselage
Susitha Herath Mudiyanselage
4,957 Points

It'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
Gergő Bogdán
6,664 Points

try this:

INSERT INTO movies(title,year) VALUES('Aliens', 1986)

The correct syntax is: insert into [tableName] (optional column names) values (x,y,z...)