Jagjit Saini

Jagjit Saini

  • NA
  • 166
  • 0

Insert data into database

Sep 5 2011 7:36 AM
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


Answers (3)