zoukankan      html  css  js  c++  java
  • 读取Oracle中的clob字段

     int actual = 0;


                string strSql = "select producthtml from web_goods where productsn=835";
                OracleDataReader reader= OraHelper.ExecuteReader(OraHelper.CONN_STRING, CommandType.Text, strSql, null);

                while (reader.Read())
                {

                    OracleLob myOracleClob = reader.GetOracleLob(0);

                    StreamReader streamreader = new StreamReader(myOracleClob, Encoding.Unicode);
                    char[] cbuffer = new char[100];
                    while ((actual = streamreader.Read(cbuffer, 0, cbuffer.Length)) > 0)
                    {
                        String test = new string(cbuffer, 0, actual);
                        FreeTextBox1.Text += test;
                    }

                    break;
                }

  • 相关阅读:
    火星A+B
    分西瓜(DFS)
    H.数7(模拟)
    镜像树(dfs)
    锐雯上单不给就送(矩阵快速幂)
    STL容器
    优先队列(和fence repair完全一样)
    x位全排列(next_permutation)
    fence repair(队列水过)
    线段相交
  • 原文地址:https://www.cnblogs.com/jameshappy/p/2683505.html
Copyright © 2011-2022 走看看