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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I dont know if this the right forum

Status
Not open for further replies.

NJDrew

Technical User
Dec 21, 2001
31
US
I dont know if this the right forum to ask this question, so if its not, please let me know. Im trying to run an insert statement and I getting all types of errors. The first one was "missing comma" when there was no missing comma. I then cut the insert down to only the fields that couldn't be null or didn't have a default and I got "column not allowed here" Im doing the insert like this: Insert into orders (FirstName, LastName, Company) Values (John, Smith, 1 Higher Learning); I aslo tried putting single ticks around the values, but it didn't like that either. Is there another way to code the insert statement or mybe Im just not wrteing it correctly. Any help would be greatly appriciated. "Mistakes are the portals of discovery"
James Joyce
 
Try simple quoting the values you wish to insert:
Insert into orders (FirstName, LastName, Company) Values ('John', 'Smith', '1 Higher Learning');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top