zoukankan      html  css  js  c++  java
  • 往ORACLE数据库中插入XML数据

     public void UpdateExamXml(string xml, string RowGuid)
            {
               System.Configuration.ConfigurationManager.AppSettings["CoonString"].ToString();
                OracleConnection con = new OracleConnection(connectionString);
                con.Open();
                OracleTransaction tran = con.BeginTransaction();
                OracleCommand command = con.CreateCommand();
                command.CommandType = CommandType.Text;
                command.CommandText = "update Exam_User set ExamXml=:ExamXml where RowGuid='" + RowGuid + "'";
                OracleParameter param = command.CreateParameter();
                param.ParameterName = ":ExamXml";
                param.Value = xml;
                param.OracleDbType = OracleDbType.NClob;
                command.Parameters.Add(param);
                command.ExecuteNonQuery();
                tran.Commit();
                con.Close();
            }
    View Code
  • 相关阅读:
    【bzoj1010】[HNOI2008]玩具装箱toy
    bzoj 3173
    bzoj 1179
    bzoj 2427
    bzoj 1051
    bzoj 1877
    bzoj 1066
    bzoj 2127
    bzoj 1412
    bzoj 3438
  • 原文地址:https://www.cnblogs.com/lyhsblog/p/6244947.html
Copyright © 2011-2022 走看看