3
Reply

Insert data into database

Jagjit Saini

Jagjit Saini

Sep 5 2011 7:36 AM
1.8k
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)
Next Recommended Forum