a.id AS "id", a.image AS "image" INSERT INTO cm_hehe_related_images( image ) VALUES ( #{image} ) UPDATE cm_hehe_related_images SET image = #{image} WHERE id = #{id} DELETE FROM cm_hehe_related_images WHERE id = #{id}