0
Guys I have this UPDATE code to do, where it adds the previous value of the column (valor_abertura) with one who comes from UPDATE, but he gives the error:
Truncated incorrect DOUBLE value.
the values are in decimal in the MySQL and in the C#.
commad.CommandText = "UPDATE pdv_historico SET sangria = @sangria ,
valor_abertura = @valor_abertura + '" + reforco +"'
ORDER BY idpdv_historico DESC LIMIT 1";
commad.Parameters.AddWithValue("sangria", sangria);
commad.Parameters.AddWithValue("valor_abertura", reforco);
Opa very compelling, it worked now tvdias.
– Teles