iReport 数据库oracle9i clob字段无法提取 高手进

tomuno 2004-10-14 12:07:39
在页面上怎么才能提取出clob类型的域值
Textfield expresion
里怎么写啊
我不会
数据库里对应的字段叫CONTENT
怎么处理$F{CONTENT}
...全文
185 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
tomuno 2004-10-15
  • 打赏
  • 举报
回复
真的没有人知道么?
tomuno 2004-10-14
  • 打赏
  • 举报
回复
up
tomuno 2004-10-14
  • 打赏
  • 举报
回复
在ireport的操作界面下如何操作?
chlei 2004-10-14
  • 打赏
  • 举报
回复
rs=st.executeQuery("select dept_duty from t_100_dept where dept_id='"+ dept_id +"' ");
if(rs.next()){
oracle.sql.CLOB clob1 = (oracle.sql.CLOB)rs.getClob("dept_duty");
if( clob1!=null){
java.io.Reader instream = clob1.getCharacterStream();
char[] tempBody = new char[102400];
int length=0;
length = instream.read(tempBody);
dept_duty = new String(tempBody, 0,length);
}
}

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧