【发布时间】:2011-10-24 16:00:26
【问题描述】:
我有以下情况。 这是我的mybatis sql语句:
<select id="select" parameterType="String" resultMap="urlList">
select
x.t002_id
from
t002_metadata x
where
existsNode(x.t002_xml, ?) = 1;
</select>
所以当我从包装类调用 select 方法并使用 xpath 表达式设置字符串参数时,会显示以下错误消息:
Missing IN or OUT parameter at index:: 1
难道mybatis不能用oracle的existNode方法做prepared statement吗??
提前致谢!
【问题讨论】: