Home > Software engineering >  I try to update my Data base data but it give ExecuteNonQuery error in c#?
I try to update my Data base data but it give ExecuteNonQuery error in c#?

Time:08-22

I want to update the existence data base data. But when I try it give me executeNonQuery error

So Kindly check this error and how to solve it??

enter image description here

CodePudding user response:

The problem is in column father-name , the '-' sign between is not acceptable in SQL Syntax for column names, change the column name to father_name in your database, or use brackets in your SQL statement

..., [father-name]='your value', ...
  • Related