I have seen other version of this problem in stack over flow and when I use it, I get error stating:
"Missing semicolon (;) at end of SQL statement."
I am learning just now C# and I don't know what I am missing, I am using the following commandtext. Suggest me where I am wrong.
"Insert into weightsofsalts(ID,WeightOfSalts) values(@id,@weightofsalts) on duplicate key update WeightOfSalts =@weightofsalts";