Database

[iBatis/myBatis] SELECT - INSERT를 할 때

코딩개발 2023. 7. 31. 13:51
728x90
반응형

IBATIS나 MYBATIS에서 SELECT INSERT를 할 때에는

태그를 <update> </update>로 해야함.

 

 

<update ....>

INSERT INTO TEST_DB

(

  칼럼들

)

SELECT 칼럼 AS 칼럼_별명

    , 칼럼 AS 칼럼_별명2....

FROM   테이블들

WHERE  조건절

</update>



출처: https://derveljunit.tistory.com/217 [Derveljun's Programming Log]

728x90
반응형