<insert id="addList" parameterType="java.util.List">
<foreach item="item" collection="list">
insert into DICTIONARY(word, pronunciation, part_of_speech, reference, definition, sentence, user_no)
values
(#{item.word}, #{item.pronunciation}, #{item.partOfSpeech}, #{item.reference}, #{item.definition}, #{item.sentence}, #{item.userNo}) ;
insert into source (dictionary_no, type, idx_on_sheet, idx_of_sheet, name_of_sheet)
values ((select max(no) from dictionary), #{item.type}, #{item.idxOnSheet}, #{item.idxOfSheet}, #{item.nameOfSheet}) ;
</foreach>
</insert>