union all简写xml

<select id="searchPriceFour" resultType="java.util.HashMap">
<foreach collection="list" index="index" item="item" open="(" separator="UNION ALL" close=")">
        select * from 表 where bak1 = #{item}
foreach>
select>

你可能感兴趣的:(xml,sql,mysql)