Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to generate alpha-numeric sequence in Oracle?
On Wed, 29 Nov 2006 23:09:07 +0800, kranilk_at_gmail.com wrote
(in article <1164812947.031592.273030_at_l39g2000cwd.googlegroups.com>):
> Hello, > > My sincere thanks to everybody for all the suggestions given above and > I apologize for not replying earlier as I got pulled into another > project that needed immediate attention. > > As regarding the justification for the business case, the client is > saying they have always used this type of sequence and they want our > system (which they just bought now) to be capable of generating this > sequence. As far as performance goes, our client says that at most they > might use about 5 sequences a month. > > Thanks again for all the help. > > On Oct 31, 2:33 pm, Brian Peasland <d..._at_nospam.peasland.net> wrote:
>>> Hello All,
>>> After searching the web unsuccessfully for what I am looking for, I >>> have come here. >>> I need to generate a 6 digit alpha-numeric sequence of values that >>> looks like the following. >>> 00001A >>> 00001B >>>> >>> 00001Z >>> 00002A >>> 00002B >>>>
>>> Do any of you know how to generate the above using sequence in Oracle? >>> Any information and/or pointers will be very helpful to me. And, of >>> course, any sample code would be greatly appreciated. I mainly work in >>> Java. We are using Oracle 9i.
>>> Thanks in advance for all the help.You could do this programmatically by >>> creating your own function. An
Yep it's something like base 36,
anyway you get the idea.
steve Received on Sat Dec 02 2006 - 16:38:21 CST
![]() |
![]() |