OracleCommand 多一个; 出错 ORA-00911: invalid character

OracleCommand 多一个; 出错 ORA-00911: invalid character



     OracleParameter[] parameters ={
                                            new OracleParameter(":date_",OracleType.DateTime,4),

                                           };

            parameters[0].Value = initDeclareTemp.Date_;

            OracleCommand cmd = OraConn.CreateCommand();
            cmd.CommandType = CommandType.Text;
            cmd.CommandText = @"INSERT INTO  table
                                     (date_,  _)
                                   VALUES
                                     (:date_,  ...); ";
            for (int j = 0; j < parameters.Length; j++)
                cmd.Parameters.Add(parameters[j]);

            bool result = cmd.ExecuteNonQuery() >= 0 ? true : false;
            return result;

你可能感兴趣的:(OracleCommand 多一个; 出错 ORA-00911: invalid character)