菜鸟笔记
提升您的技术认知

java中clob转换为string-ag真人游戏

public string clobtostring(clob clob) throws sqlexception, ioexception {
        reader is = clob.getcharacterstream();
        bufferedreader br = new bufferedreader(is);
        string s = br.readline();
        stringbuffer sb = new stringbuffer();
        while (s != null) {
            sb.append(s);
            s = br.readline();
        }
        string restring = sb.tostring();
        return restring;
    }
网站地图