如果存在值就會返回true,如果不存在就返回false
<select id="ifExist" parameterType="string" resultType="boolean">
<![CDATA[ select count(id) from web_member where name = #{name} ]]>
</select>
<!-- 注意要用count ,因為count能找出條數(shù),根據(jù)條數(shù)判斷 返回false 還是true, 0為false-->