category-parent-change-oracle.xql
DB Query file
Related Files
- packages/categories/www/cadmin/category-parent-change.tcl
- packages/categories/www/cadmin/category-parent-change.adp
- packages/categories/www/cadmin/category-parent-change-postgresql.xql
- packages/categories/www/cadmin/category-parent-change-oracle.xql
[ hide source ] | [ make this the default ]
File Contents
<?xml version="1.0"?> <queryset> <rdbms><type>oracle</type><version>8.1.6</version></rdbms> <fullquery name="get_subtree"> <querytext> select /*+INDEX(child categories_left_ix)*/ child.category_id from categories parent, categories child where parent.category_id = :category_id and child.left_ind >= parent.left_ind and child.left_ind <= parent.right_ind and child.tree_id = parent.tree_id order by child.left_ind </querytext> </fullquery> </queryset>