2010-11-22 119 views
0

我已經XML存儲在XMLType表中(Oracle數據庫)如果數據庫事項XPath表達式日期



<?xml version="1.0"?>               
<myDate xmlns="http://www.example.com/schema" dateTimeProc="20100824T102806" Num="666" timId="4" procId="1" proces="501">               
</myDate> 

<?xml version="1.0"?>               
<myDate xmlns="http://www.example.com/schema" dateTimeProc="20101110T102806" Num="666" timId="4" procId="1" proces="501">               
</myDate> 

我想知道什麼之間獲取值xpath表達式來獲取所有在特定日期之間的xml,例如

select * from XMLTable 
where existsNode(object_value,'myDate[@dateTimeProc]') 
between sysdate-120 and sysdate-90 

回答