<delete id="deleteMyInfo">
{call
declare
begin
DELETE FROM TABLE1 WHERE TABLE1 IN (SELECT TABLE1_NUM FROM TABLE1 WHERE MEM_ID = #{memId});
DELETE FROM TABLE2 WHERE TABLE2 IN (SELECT TABLE2_NUM FROM TABLE2 WHERE MEM_ID = #{memId});
DELETE FROM TABLE3 WHERE MEM_ID = #{memId};
end
</delete>
'Database > MyBatis' 카테고리의 다른 글
[ORM] MyBatis 동적 쿼리 trim (0) | 2018.03.28 |
---|---|
[Procedure] ibatis 호출 (0) | 2015.02.12 |
[Spring] Repository sqlMapClientTemplate 맵핑 (0) | 2014.08.03 |
org.springframework.dao.DataAccessResourceFailureException / RecoverableDataAccessException (0) | 2014.03.25 |
[iBatis] Multi Insert 시 List 형태와 Map 형태 (0) | 2014.02.24 |