Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding data to a table

Status
Not open for further replies.

luds

Programmer
Jul 15, 2003
162
GB
I'm trying to add some sample data to a mysql table, but keep getting this error...

ERROR 1054: unknown column 'corbett' in 'field list'

The command that generates this is
INSERT INTO nmc_site_members (lastname, firstname) VALUES (corbett, harry);

Ideas anyone?

thanks
luds
 
You are missing the quotation marks on your values.

INSERT INTO nmc_site_members (lastname, firstname) VALUES ('corbett', 'harry');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top