Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Range function
Thanks for the input.
Adar Yechiel
Rechovot, Israel
Mindaugas Navickas wrote:
>Hi Adar,
>
>Few suggestions regarding the program
>1. I would suggest to enhance error handling - e.g. when list contains not
>valid characters, etc.
>2. A working example (corresponding to your code) would be (note underscore
>instead of dash):
>select range.ranges('0_100,101_200,201_300',balance) from account;
>3. the function will parse a string (list of ranges) for every row in account
>table. Unfortunatly string operations in PL/SQL are slow and also Oracle will
>suffer from SQL/PL-SQL context switches. If performance is important in this
>case, I would populate some temporary or in-memory table (parsing just once)
>and then would use it joining it with account table.
>
>Let me know if those suggestions makes sense to you.
>
>Regards
>Mindaugas Navickas
>OCP DBA
>
>
>
>
>
-- http://www.freelists.org/webpage/oracle-lReceived on Mon Mar 20 2006 - 03:02:16 CST
![]() |
![]() |