背景 开发说: 有段SQL语句,去掉order by很快,有order by之后,查询1小时都无法返回结果. 我叫他把SQL扔给我看下. SQL代码及执行计划 select * from (select d.*, rownum as num from (SELECT A.BILLNO, A.BILLCODE, A.GETDATE, A.GETUNITCODE, A.GETCODE, A.GETORGANCODE, A.USEORGANCODE, A.USEDATE, A.USEUNITCODE,…