当前位置:Gxlcms > 数据库问题 > Mybatis动态SQL单一基础类型参数用if标签

Mybatis动态SQL单一基础类型参数用if标签

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

<select id="selectByName" resultMap="ResultMap" parameterType="java.lang.String" >  
    select * from table1  
    <if test="_parameter != null">  
        where _name = #{name}  
    </if>  
</select>  

  

Mybatis动态SQL单一基础类型参数用if标签

标签:sql   select   highlight   style   str   gpo   parameter   color   where   

人气教程排行