INSERT INTO photo (
photo_id
, photo_mng_id
, photo_dt
, like_data
, unit_id
, std_id
, file_mng_id
) VALUES (
#{photoId}
, #{photoMngId}
, now()
, #{likeData}
, #{unitId}
, #{stdId}
, #{fileMngId}
)
UPDATE photo
SET photo_id = #{photoID}
, photo_mng_id = #{photoMngId}
, photo_dt = now()
, like_data = #{likeData}
, unit_id = #{unitId}
, std_id = #{stdId}
, file_mng_id = #{fileMngId}
WHERE photo_id = #{photoId}
DELETE
FROM photo
WHERE photo_id = #{photoId}