초보질문 - insert할때 질문

by rusell posted Jul 02, 2009
안녕하세요..
다음과 같이 테이블을 생성을 했습니다.

create table mail_list(mail varchar(125), mail_name(32))
creat table user(userid varchar(125), name(32), mails set(mail_list))

mail_list에 데이타는 다음과 같습니다.
han1@naver.com  han1
han2@naver.com  han2
han3@naver.com  han3

이때 user테이블에 insert할때,
insert into user values ('han', 'han', {(select mail_list.identity from mail_list where mail = 'han1@naver.com'),
                                                    select mail_list.identity from mail_list where mail = 'han2@naver.com'),
                                                    select mail_list.identity from mail_list where mail = 'han2@naver.com')})
이런식으로 말고 mail_list테이블의 복수 레코드를 한번의 서브쿼리로 넣을 수는 없는 건가요?
만약에 mails에 100건이상의 데이타를 넣는다고 할 경우 이런식으로 넣기에는 좀..
뭔가 방법이 있을 것 같은데 잘 모르겠네요..
방법이 있다면 알려주세요..

그럼 수고하세요..