**mybatis處理SQL查詢中的where後面and經常使用的2種方法**

<!-- 1:後面跟1=1 決對成立--> <select id="queryPersonByidAndNo"> select * from person where 1=1 <if test=" id !=null and id !='' "> and id = #{id} </if> <if test=" id !=null and id !='' "> and
相關文章
相關標籤/搜索