example --> select id, name, member_type from users where role = ${selected_role} $if( ${prefecture} ) and prefecture_code = ${prefecture} $endif UNCOVERTRUTH Tech sake #2 11
as name from t start with parent_id is null connect by prior id=parent_id where parent_id is not null; parent name メンズ トップス トップス T シャツ トップス トレー ナー セー ル パンツ UNCOVERTRUTH Tech sake #2 27
id, parent_id, category_name from t where parent_id IS NULL UNION ALL select s.id, s.parent_id, s.category_name as parent from t as s, r where r.id = s.parent_id ) search depth first BY id set ordcol SELECT r.parent, r.category_name as name FROM r WHERE r.parent_id i not null ORDER BY ordcol; UNCOVERTRUTH Tech sake #2 28