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

insert operation in MySQL

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
This is what I'm trying to do :

insert into table supporters values(null,"Degraef Nico", "Daalstraat 46 3870 Heers","nitro2000be@hotmail.com","tafeltennis-uitgaan-muziek"," Stoica","RSCA","Van Den Stock",'null')


mysql gives as an error:

MySQL retourneerde: You have an error in your SQL syntax near 'table supporters values(null,"Degraef Nico", "Daalstraat 46 3870 Heers","nitro20' at line 1

I thought that the problem was the @ sign, but if I remove it, MySQl still gives an error and then the error is :

MySQL retourneerde: You have an error in your SQL syntax near 'table supporters values(null,"Degraef Nico", "Daalstraat 46 3870 Heers","nitro2000be","ta' at line 1
 
Just noticed:
[tt]
insert into table supporters values(null,"Degraef Nico", "Daalstraat 46 3870 Heers","nitro2000be@hotmail.com","tafeltennis-uitgaan-muziek","www.powong66.f2s.com";,"Aruna, Stoica","RSCA","Van Den Stock",'null')
[/tt]
you have a semi-colon in the text (highlighted in red) try removing that.

previewing this post puts yet another semi-colon into the code however, so it could be that the forum put the original one in. Also, print out your sql statement after you have constructed it, it might reveal errors that are harder to spot in the code.

Will.
fortytwo
will@hellacool.co.uk
 
No, it wasn't that, that wasn't originally in my query, but the problem was insert into TABLE supporters.
The table doesn't have to be there
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top