时间:2021-07-01 10:21:17 帮助过:3人阅读
oracle9的处理方式:
<bean id="nativeJdbcExtractor" class="org.springframework.jdbc.support.nativejdbc.SimpleNativeJdbcExtractor" lazy-init="true" />
<bean id="oracleLobHandler" class="org.springframework.jdbc.support.lob.OracleLobHandler" lazy-init="true">
<property name="nativeJdbcExtractor">
<ref bean="nativeJdbcExtractor" />
</property>
</bean>
oracle11的处理方式:
<bean id="oracleLobHandler" class="org.springframework.jdbc.support.lob.DefaultLobHandler" lazy-init="true" />
ibatis 使用:
<insert id="insertExcel" parameterClass="java.util.Map">
insert into xzxk_spsc_sqclfj
(wordid, tepid, tepcategory, buspkey, wordname, wordsize, wordcontent, createdate, createman, wordnew, wordremark,fileextname)
values
(#WORDID#, #TEPID#, #TEPCATEGORY#, #BUSPKEY#, #WORDNAME#, #WORDSIZE#, #WORDCONTENT,handler=org.springframework.orm.ibatis.support.BlobByteArrayTypeHandler#, sysdate, #CREATEMAN#, #WORDNEW#, #WORDREMARK#,#FILEEXTNAME#)
</insert>
不同oracle版本对blob字段处理方式
标签:blob oracle