我有一个有效的代码,
CURSOR c_val IS
SELECT 'Percentage' destype,
1 descode
FROM dual
UNION ALL --16028 change from union to union all for better performance
SELECT 'Unit'destype,
2 descode
FROM dual
ORDER BY descode DESC;
--
我将联合更改为联合所有,从我所阅读的内容来看,只要我有订单(我这样做),它不会有太大的不同,这是事实还是我应该保持原样,它仍然有效双向