헤르메스 LIFE

[Oracle] 대량 Insert 예제 본문

Database

[Oracle] 대량 Insert 예제

헤르메스의날개 2020. 11. 18. 23:49
728x90
-- 대량 Insert 문 - Insert ALL
INSERT ALL   
  INTO EMP_MNG (CORP_CD, EMP_ID, YM, MON, INS_USER, INS_YMD, INS_TIME ) VALUES ( '10','1234' , '201408','216720' ,'admin' ,SYSTIMESTAMP,CURRENT_TIMESTAMP)
  INTO EMP_MNG (CORP_CD, EMP_ID, YM, MON, INS_USER, INS_YMD, INS_TIME ) VALUES ( '10','2345' , '201408','188540' ,'admin' ,SYSTIMESTAMP,CURRENT_TIMESTAMP)
  INTO EMP_MNG (CORP_CD, EMP_ID, YM, MON, INS_USER, INS_YMD,INS_TIME ) VALUES ( '10','3456' , '201408','191160' ,'admin' ,SYSTIMESTAMP,CURRENT_TIMESTAMP)
  INTO EMP_MNG (CORP_CD, EMP_ID, YM, MON, INS_USER, INS_YMD, INS_TIME  ) VALUES ( '10','4567' , '201408','202400' ,'admin' ,SYSTIMESTAMP,CURRENT_TIMESTAMP)
 SELECT * FROM DUAL

728x90