Hi
Please can someone tell me why this update statment gives me error?
OdbcConnection connection = new OdbcConnection("Dsn=produtos;server=localhost;uid=***;pwd=***;database=***;port=3306"); OdbcCommand command = new OdbcCommand("UPDATE perfumes SET preco=? WHERE id=?)", connection); command.Parameters.AddWithValue("@pvp", 11.55); command.Parameters.AddWithValue("@id", 11); connection.Open(); command.ExecuteNonQuery(); connection.Close();
Got