정적쿼리 : 어떤 조건 또는 상황에도 변경되지 않는 쿼리문
동적쿼리 : 특정 조건들이나 상황에 따라 변경되는 쿼리문
<choose> : 크게 감싸고,
<when test="조건"> : 조건을 걸고,
<otherwise> : 기타요소를 넣는다.
</otherwise>
</when>
</choose>
//where 사용시
1. <where>
<if test="조건">
</if>
</where>
2. <trim prefix="WHERE" prefixOverrids="AND">
<if test="조건">
</if>
</trim>
//set 사용시
1. <trim prefix="SET" suffix Overrids=",">
<if test="조건">
</if>
</trim>
<foreach collection="array" item="배열명" separator=",">
#{배열명}
</foreach>