标签:pass tty 动态sql param lin list where sep style
<sql>用于提取 SQL 语句, <include>用于引用 SQL 语句
1 <sql id="tb_user"> 2 id,user,passwd 3 </sql> 4 5 <select id="selIn" resultType="User" parameterType="list"> 6 select 7 <include refid="tb_user"/> 8 from tb_user where id in 9 <foreach collection="list" open="(" separator="," close=")" item="item"> 10 #{item} 11 </foreach> 12 </select>
标签:pass tty 动态sql param lin list where sep style
原文地址:https://www.cnblogs.com/qiaoxin11/p/12855641.html