论坛
门户
内部优惠
喜欢
话题
VIP会员
搜索
新浪微博
登录
注册
100%
100%
首页
>
软件开发
>
java语言
>
ibatis + spring框架下,对CLOB字段操作
回复
« 返回列表
灯火互联
管理员
注册日期
2011-07-27
发帖数
41778
QQ
火币
41290枚
粉丝
1086
关注
100
加关注
写私信
打招呼
阅读:
3431
回复:
0
ibatis + spring框架下,对CLOB字段操作
楼主
#
更多
只看楼主
倒序阅读
发布于:2012-09-25 14:34
保存
100%
100%
[]
1
ibatis + spring框架下,对CLOB字段操作。
TfBTrade
inter
Send.xml设置:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap
PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-2.dtd">
<sqlMap namespace="TfBTradeInterSend">
<typeAlias alias="TfBTradeInterSend" type="com.sitech.groupcust.common.dto.TfBTradeInterSend"/>
<resultMap id="TfBTradeInterSendResult" class="TfBTradeInterSend">
<result property="tradeId" column="TRADE_ID"/>
<result property="subscribeId" column="SUBSCRIBE_ID"/>
<result property="infaceType" column="INFACE_TYPE"/>
<result property="dealState" column="DEAL_STATE"/>
<result property="dealMsg" column="DEAL_MSG"/>
<result property="resendCount" column="RESEND_COUNT"/>
<result property="sendContent" column="SEND_CONTENT"
java
Type="java.lang.String" jdbcType="CLOB"/>
<result property="dealDate" column="DEAL_DATE"/>
<result property="inDate" column="IN_DATE"/>
<result property="notes" column="NOTES"/>
<result property="provinceCode" column="PROVINCE_CODE"/>
</resultMap>
t.send_content: 类型是CLOB。
问题描述:根据上面sqlMapClient设置后,当对send_content进行插入、更新操作时,没问题。但是当以send_content:作为查询条件时,报下面的错误:
ORA-00932: inconsistent datatypes
解决:
select * from tf_b_trade_inter_send t where
dbms_lob.instr(t.send_content,'02BBSS000100001348479247031914',1,1)>0
喜欢
0
评分
0
最新喜欢:
淘宝天猫隐藏优惠券地址
回复
100%
发帖
回复
« 返回列表
普通帖
您需要登录后才可以回帖,
登录
或者
注册
100%
返回顶部
关闭
最新喜欢