archetecture query

          1 hierachical Queries
          ?select [level],colun,expr......
          ?from table
          ?[where condition(s)]
          ?[start with condition(s)]
          ?[connect by prior condition(s)]
          ?
          ?where condition
          ? exprcompparison_operator expr

          2 Starting Point
          ?.Specifies the condition that must be met
          ?.Accepts any valid condition
          3 Waling the Tree
          ? connect by prior column1=column2
          ? walk from the top donw ,using the employees table
          ?? top donw
          ???? column1=parentkey
          ???? column2=childkey
          ?? bottom up
          ???? column1=child key
          ???? column2=parent key

          ? select level,last_name
          ? from employees
          ? start with last_name='king'
          ? connect by prior employee_id=manager_id;

          posted on 2006-10-11 14:42 康文 閱讀(187) 評論(0)  編輯  收藏 所屬分類: 數據庫

          <2006年10月>
          24252627282930
          1234567
          891011121314
          15161718192021
          22232425262728
          2930311234

          導航

          統計

          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 苏尼特右旗| 乐清市| 营口市| 凌海市| 大连市| 柘荣县| 庆安县| 尼玛县| 兴宁市| 宜春市| 襄樊市| 汕尾市| 固阳县| 延庆县| 昭平县| 枞阳县| 阳城县| 巴东县| 镇沅| 招远市| 彝良县| 阳高县| 兴山县| 丹棱县| 志丹县| 清原| 忻州市| 广西| 浮梁县| 龙江县| 宜黄县| 扎囊县| 綦江县| 兴文县| 汝州市| 平阳县| 旬邑县| 梧州市| 新沂市| 漾濞| 虞城县|