select d.id, d.location_code, d.scene, m.scene_name, d.warehouse, d.encoded_id, d.tag, d.remark, d.is_delete, d.created_by, d.created_at, d.updated_by, d.updated_at from pcde_detail d left join scene_mapping m on d.scene = m.scene_code insert into pcde_detail location_code, scene, warehouse, encoded_id, tag, remark, is_delete, created_by, created_at, updated_by, updated_at, #{locationCode}, #{scene}, #{warehouse}, #{encodedId}, #{tag}, #{remark}, #{isDelete}, #{createdBy}, #{createdAt}, #{updatedBy}, #{updatedAt}, update pcde_detail location_code = #{locationCode}, scene = #{scene}, warehouse = #{warehouse}, encoded_id = #{encodedId}, tag = #{tag}, remark = #{remark}, is_delete = #{isDelete}, created_by = #{createdBy}, created_at = #{createdAt}, updated_by = #{updatedBy}, updated_at = #{updatedAt}, where id = #{id} delete from pcde_detail where id = #{id} delete from pcde_detail where id in #{id}