admin 管理员组

文章数量: 887021


2024年1月16日发(作者:xml文件怎么转成jpg格式)

    {      if (oracle_ == )      {        return "success";      }      if (oracle_ == )      {        return "ConnectionState:Broken";      }    }    return "success";  }  catch (Exception ex)  {    return e;  }}Oracle的增删改:///

/// Oracle insert,delete,update/// /// insert,delete,update statement/// Success:success + Number of affected rows; Fail:reasonpublic string Oracle_Insdelupd(string sql){  try  {    int num = 0;    if (oracle_con == null)    {      return "Please open the database connection first";    }    if (oracle_ == )    {      OracleCommand oracleCommand = new OracleCommand(sql, oracle_con);      num = eNonQuery();    }    else    {      if (oracle_ == )      {        return "Database connection closed";      }      if (oracle_ == )      {        return "Database connection is destroyed";      }    }    return "success" + num;  }  catch (Exception ex)  {    return ng();  }}Oracle的查:/// /// Oracle select/// /// select statement/// Success:success; Fail:reason/// select resultpublic DataSet Oracle_Select(string sql, out string record)

///

/// Oracle select/// /// select statement/// link statement/// Success:success; Fail:reason/// select resultpublic DataSet Oracle_Select(string sql, string link, out string record){  try  {    using (OracleConnection oracleConnection = new OracleConnection(link))    {      DataSet dataSet = new DataSet();      ();      OracleDataAdapter oracleDataAdapter = new OracleDataAdapter(sql, oracleConnection);      (dataSet, "sample");      e();      ();      record = "success";      return dataSet;    }  }  catch (Exception ex)  {    DataSet dataSet = new DataSet();    record = ng();    return dataSet;  }}


本文标签: 文件 转成 格式 作者