当前位置:Gxlcms > 数据库问题 > mybatis:字符串转成数组拼接成SQL

mybatis:字符串转成数组拼接成SQL

时间:2021-07-01 10:21:17 帮助过:105人阅读

<foreach item="item" index="index" collection="str.split(‘,‘)" open="(" separator="," close=")">#{item}</foreach>
这里调用了java的split方法,把str分成了一个数组.

mybatis:字符串转成数组拼接成SQL

标签:index   round   pre   调用   cti   mybatis   dex   order   方法   

人气教程排行