答案 0 :(得分:3)
我没有要测试的Oracle8实例,但这应该可行:
Elapsed time is 0.463370 seconds.
Elapsed time is 1.566913 seconds.
答案 1 :(得分:1)
为什么你没有尝试交叉。
SELECT prod_type,
prod_no,
cat_no,
prod_cat,
text,
prod_seq
FROM temp_data
WHERE prod_no IN (SELECT prod_no
FROM temp_data
WHERE cat_no = 36
INTERSECT
SELECT prod_no
FROM temp_data
WHERE cat_no = 39)