상세 컨텐츠

본문 제목

sql구문매핑할것예시(첨가사항예제)

JAVA/Mybatis

by 영공쁘이 2021. 8. 7. 12:19

본문

@Insert({ "<script>", "insert into attach(name, size, board_no) values", "<foreach collection='attachs' item='attach' index='index' seperator=','>", "(#{attach.name}, #{attach.size}, #{attach.board.no})", "</foreach>", "</script>" }) void saveAttachs(@Param(value="attachs")List<Attach> attachs);

'JAVA > Mybatis' 카테고리의 다른 글

Mybatis 이용(스프링과 연결)  (0) 2021.08.10

관련글 더보기