在查询时尽量少用格式转换,例如在条件中使用:
WHERE a.order_no = b.order_no
而不是
WHERE TO_NUMBER(substr(a.order_no, instr(b.order_no, '.') - 1)) = TO_NUMBER(substr(a.order_no, instr(b.order_no, '.') - 1))。这样可以提高查询性能。
在查询时尽量少用格式转换,例如在条件中使用:
WHERE a.order_no = b.order_no
而不是
WHERE TO_NUMBER(substr(a.order_no, instr(b.order_no, '.') - 1)) = TO_NUMBER(substr(a.order_no, instr(b.order_no, '.') - 1))。这样可以提高查询性能。