电脑开发与应用
電腦開髮與應用
전뇌개발여응용
COMPUTER DEVELOPMENT & APPLICATIONS
2007年
8期
66-67
,共2页
SQL%多级编目%树%路径
SQL%多級編目%樹%路徑
SQL%다급편목%수%로경
在实际应用中经常会有些类似财务科目式的把结点的上下层关系置入编码中的数据,以多级编码的方式存储在库表中,但有时为了获取某结点在树结构中从根结点到本身结点的名称路径却不得不要通过编程来实现.通过对Oracle的SQL语句的分析,提出用一句Oracle的SQL语句完成从根结点到本身结点名称路径的生成方法,此法在多个系统中得到实际应用,简便实用大大提高了程序的可靠性,也为其他多级编目式的树型关系数据获取绝对路径提供一种新颖的方法.
在實際應用中經常會有些類似財務科目式的把結點的上下層關繫置入編碼中的數據,以多級編碼的方式存儲在庫錶中,但有時為瞭穫取某結點在樹結構中從根結點到本身結點的名稱路徑卻不得不要通過編程來實現.通過對Oracle的SQL語句的分析,提齣用一句Oracle的SQL語句完成從根結點到本身結點名稱路徑的生成方法,此法在多箇繫統中得到實際應用,簡便實用大大提高瞭程序的可靠性,也為其他多級編目式的樹型關繫數據穫取絕對路徑提供一種新穎的方法.
재실제응용중경상회유사유사재무과목식적파결점적상하층관계치입편마중적수거,이다급편마적방식존저재고표중,단유시위료획취모결점재수결구중종근결점도본신결점적명칭로경각불득불요통과편정래실현.통과대Oracle적SQL어구적분석,제출용일구Oracle적SQL어구완성종근결점도본신결점명칭로경적생성방법,차법재다개계통중득도실제응용,간편실용대대제고료정서적가고성,야위기타다급편목식적수형관계수거획취절대로경제공일충신영적방법.