Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Partitioning by first digit of VARCHAR column data
Hi,
I have a table with several columns which include a NUMBER(year) and a VARCHAR(some code) columns. The VARCHAR column has values that start with either 1 or 2 or 3 or 4. I would like to have composite range partition key based on YEAR and the first digit of the VARCHAR column. Is there any way I can accomplish this? Can I use some function like SUBSTR to partition the table based on first digit of VARCHAR column data?
Thanks for your help.
Surendra
![]() |
![]() |