c# - Data type mismatch in criteria expression exception -


when run code gives me mismatch criteria exception"

enter image description here

enter image description here

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

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -