c# - Data type mismatch in criteria expression exception -
remove quotes amounts , category_id
"update products set amount=" + amount1 + " category_id=" + temp; this build correct sql string.
btw encourage use query parameters queries https://msdn.microsoft.com/it-it/library/system.data.oledb.oledbcommand.parameters(v=vs.110).aspx


Comments
Post a Comment