<delete id="deleteContents" parameterType="VO">
/* QUERY.deleteContents */
DELETE FROM TABLE_NAME A
WHERE EXISTS (SELECT B.*
FROM (SELECT SYS_SN, TBL_NM FROM T_LINK_DB_INFO WHERE SYS_SN = #{systSerno}
MINUS
SELECT #{systSerno} SYS_SN, CLASS_NAME TBL_NM FROM DB_CLASS WHERE UPPER(OWNER_NAME) = UPPER(#{systUserId})
) B
WHERE A.SYS_SN = B.SYS_SN
AND A.TBL_NM = B.TBL_NM)
</delete>