ITeye博客

iBatis

共 1 篇文章

iBatis动态SQL标签用法

iBatis动态SQL标签用法 1、动态SQL片段 通过SQL片段达到代码复用 <!-- 动态条件分页查询 --> <sql id="sql_count"> select count(*) </sql> <sql id="sql_select"> select * </sql> <sql id="sql_where"> from icp <dynamic prepend="where"> <isNotEmpty prepend="and" property="name"> name like '%$name$%' </isNotEmpty> <isNotEmpty prepend="and"…

2012-09-07 11:14 · iBatis · SQL · iBATIS