Answer the question
In order to leave comments, you need to log in
Update timestamp in oracle via odp.net. Because of what Invalid parameter?
There is a request:
const String SET_THE_LOT_SQL = @"update lots set bet = :bet, finishing_time = :finishing_time, user_id = :user_id where lot_id = :currentLot";
OracleCommand set_lot_command = new OracleCommand(SET_THE_LOT_SQL, connection) { BindByName = true, CommandType = System.Data.CommandType.Text };
set_lot_command.Parameters.Add(":bet", OracleDbType.Decimal).Value = bet;
set_lot_command.Parameters.Add(":user_id", OracleDbType.Int32).Value = user_id;
set_lot_command.Parameters.Add(":new_limit", OracleDbType.TimeStamp).Value = DateTime.Now;
set_lot_command.Parameters.Add(":currentLot", OracleDbType.Int32).Value = lot_id;
set_lot_command.ExecuteNonQuery();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question