참고 https://kimvampa.tistory.com/176
<sql> 태그는 다른 구문에서 재사용가능한 sql 구문을 정의 할 때 사용
<include> 같은 파일 내에 정의해둔 <sql> 불러올때 사용
ex) where 부분 공통사용
<sql id="where">
where bno = #{bno}
</sql>
<select id="getPage" resultType="int">
select pageNum from vam_board <include refid="where"></include>
</select>
<select id="getTitle" resultType="String">
select title from vam_board <include refid="where"></include>
</select>
<select id="getContent" resultType="String">
select content from vam_board <include refid="where"></include>
</select>
IFNULL((SELECT count
FROM ${DB_NEOS}.t_co_comment_count t_inner
WHERE t_inner.module_gbn_code = 'board'
AND t_inner.module_seq = t_mast.art_seq_no
),0) as comment_cnt
//comment_cnt(댓글갯수) 등록된 댓글(select~)이 null값이면 0으로 반환
컨트롤+쉬프트+F = 파일 내에서 검색
쉬프트+쉬프트 = 각종 검색(파일 검색)