Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

How to Create db2 Sequence from 000000 to 999999

$
0
0
Hi,

I would like to get a sequence no. generated in the range of '000000' to '999999' which can be used by querying the particular sequence.But on creating the sequence and using it,the sequence starts with single digit 1,2,3,4...and so on is there any way by which I could create sequence like 000000 ,000001,000002,000003 ....and so on uptil 999999.

I am using DB2 Linux x86_64 and DB version is 10.5 FP3

Any help with be highly appreciated.

Regards, Ashish

Viewing all articles
Browse latest Browse all 13329

Trending Articles