torturedmind
Programmer
We have a partitioned table in Oracle 10g and we are using VFP to SELECT data from it. The table is partitioned by year and are named P1, P2, ..., Pnn. I've constructed a view in VFP to query the records but no data appear. I found out that I need the PARTITION phrase to make things happen. In PL/SQL, i can say
Partition P13 is where all 2011 records are. My question is, how can I tell Oracle to look for data under a particular partition from VFP? I'm looking at macro substitution but don't really know how to implement it. Or maybe there is a better way.
TIA
kilroy![[knight] [knight] [knight]](/data/assets/smilies/knight.gif)
philippines
"Once a king, always a king. But being a knight is more than enough."
Code:
SELECT alpha.*
FROM alpha alpha
[b][COLOR=blue]PARTITION (P13)[/color][/b]
WHERE alpha.sdate BETWEEN ?xdate1 AND xdate2
ORDER BY alpha.enum, alpha.sdate, alpha.stime
TIA
kilroy
![[knight] [knight] [knight]](/data/assets/smilies/knight.gif)
philippines
"Once a king, always a king. But being a knight is more than enough."