select ID, IS_DELETED, CREATED_TIME, CREATED_BY, MODIFIED_BY, LAST_UPDATED_TIME, USER_CODE, BUILDING_ID from user_building_rel
insert into user_building_rel
ID,IS_DELETED,CREATED_TIME,CREATED_BY,MODIFIED_BY,LAST_UPDATED_TIME,USER_CODE,BUILDING_ID,#{id},#{isDeleted},#{createdTime},#{createdBy},#{modifiedBy},#{lastUpdatedTime},#{userCode},#{buildingId},
update user_building_rel
IS_DELETED = #{isDeleted},CREATED_TIME = #{createdTime},CREATED_BY = #{createdBy},MODIFIED_BY = #{modifiedBy},LAST_UPDATED_TIME = #{lastUpdatedTime},USER_CODE = #{userCode},BUILDING_ID = #{buildingId},
where ID = #{id}
delete from user_building_rel where ID = #{id}
delete from user_building_rel where ID in
#{id}