select tree_id from category_tree_map where object_id = :package_id select tree_id from ml_country_category_tree where package_id = :package_id delete from ml_country_category_tree where package_id = :package_id insert into ml_country_category_tree (tree_id, package_id) values (:country_tree_id, :package_id)