1 "CREATE FORCE VIEW "ADMIN"."P_VIEW_ORDERITEMP" ("I"
2 "TEMCODE","ITEMTYPE","ORDERITEMCODE","ITEMFLG","PREORDERITEMCODE") AS "
3 "select BSS_ORDERITEM.Itemcode,BSS_ORDERITEM.Itemtype,BSS_ORDERITEM.Orderite"
4 "mcode,BSS_ORDERITEM.ITEMFLG,p_view_param.get_param() Preorderitemcode from "
5 "BSS_ORDERITEM"
6 "START WITH BSS_ORDERITEM.Orderitemcode =(select BSS_ORDERITEM.Orderitemcode"
7 " from BSS_ORDERITEM"
8 "where BSS_ORDERITEM.Orderitemcode <> p_view_param.get_param() and BSS_"
9 "ORDERITEM.Preorderitemcode= p_view_param.get_param() )"
10 "CONNECT BY prior BSS_ORDERITEM.Orderitemcode =BSS_ORDERITEM.Preorderitemcod"
11 "e"
12 ""
13 "union all"
14 "select BSS_ORDERITEM.Itemcode,BSS_ORDERITEM.Itemtype,BSS_ORDERITEM.Orderite"
15 "mcode,BSS_ORDERITEM.ITEMFLG,to_char(BSS_ORDERITEM.Preorderitemcode) from BS"
16 "S_ORDERITEM"
17 "left join BSS_ORDERPAY on BSS_ORDERITEM.Orderitemcode = BSS_ORDERPAY.Order"
18 "itemcode"
19 "where BSS_ORDERITEM.Orderitemcode=p_view_param.get_param()"