Hi
MySqlCommand myCommand = new MySqlCommand("INSERT INTO hs_hr_attendance (10,_dt2,_dt.ToString(),NULL,'',NULL,0,1)",con);it is giving error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '10,_dt2,_dt.ToString(),NULL,'',NULL,0,1)'
Thanks
Insert data into database
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Posted Sep 5, 2011, 3:48 AM EDT
Jagjit Saini166 reputationPosted Sep 5, 2011, 3:57 AM EDT
Solved. I was using wrong syntax.
Thanks
Sam HobbsRank #107 · 20.5K reputationPosted Sep 5, 2011, 12:17 PM EDT