ฉันมีคำสั่ง SQL SELECT ที่ส่งคืน:
Error: ORA-00600: internal error code, arguments: [qerpfAllocateR], [], [], [], [], [], [], []
ถ้าฉันจำกัดผลลัพธ์ให้แคบลงโดยเพิ่มเงื่อนไขอีกหนึ่งข้อในส่วนคำสั่ง WHERE ทุกอย่างก็โอเค
ใครรู้ว่าเกิดอะไรขึ้น?
แก้ไข:
select * from ( select tbl1.col1, ..., tbl1.points
from table1 tbl1, table2 tbl2
where tbl1.tbl2FK = tbl2.PK and
tbl2.col1 = someNumber and
tbl1.dateColumn = to_date('27-10-2008','dd-mm-yyyy')
order by tbl1.points desc ) s where rownum <= 3
แก้ไข 2:
ผู้ดูแลระบบ DB ของฉันแนะนำวิธีแก้ปัญหาที่ใช้งานได้:
select * from (select rank() over (order by tbl1.points desc) rank,
tbl1.col1, ..., tbl1.points
from table1 tbl1, table2 tbl2
where tbl1.tbl2FK = tbl2.PK and
tbl2.col1 = someNumber and
tbl1.dateColumn = to_date('27-10-2008','dd-mm-yyyy')) s
where s.rank <= 3