开发者社区 问答 正文

oracle和mybatis批量查询的问题?报错

@寻觅一只耳朵 你好,想跟你请教个问题:

看了你的链接:https://my.oschina.net/jsonavaj/blog/265112?nocache=1506592738761

然后我的语句是这样的,但是报错
<select id="queryCurrentPageProduct2" parameterType="java.util.List" resultType="com.hhigh.pojo.Prodfilepro">
         <foreach collection="list" item="item" index="index" open="begin" close="end;" separator=";">
            select * from PRODFILEPRO where PRODUCTNAME=${item.productname} and PLUGINNAME=${item.pluginname} and PROID=${item.proid}
        </foreach>
    </select>

 

 

希望大牛帮忙看一下

 

展开
收起
爱吃鱼的程序员 2020-06-08 10:34:33 640 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    不管是将$改成#,还是用$,都会报错:ORA-06550:第11行,第7列: 
    PLS-00103:出现符号"end-of-file"在需要下列之一时:
     (begincase
      declareendexceptionexitforgotoifloopmodnullpragma
      raisereturnselectupdatewhilewith<anidentifier>
      <adouble-quoteddelimited-identifier><abindva


    很多类似的错误信息

    2020-06-08 10:34:44
    赞同 展开评论