--模糊查询某个页面 SELECT * FROM JDR_PATHS jp WHERE JP.PATH_NAME LIKE '%XXXX%'; --精确的查找过程 -- DocID --参数通过关于此页的页面路径查询 Select jdr_mds_internal.getDocumentID('XXXX') From dual; -- 查照对应的DocId Select * From jdr_paths Where path_docid = XXXX;
DECLARE -- Local variables here i INTEGER; --仅知道某个页面的ID,而不清楚其具体的路径 CURSOR c_path IS SELECT path_docid, path_name, path_type FROM jdr_paths START WITH path_docid = '81813' CONNECT BY PRIOR path_owner_docid = path_docid ORDER BY path_docid; document_path VARCHAR2(200) := ''; BEGIN -- Test statements here FOR cc IN c_path LOOP document_path := document_path ||'/'|| cc.path_name; END LOOP; dbms_output.put_line(document_path); END;
参考文档: