Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> HELP! PL/SQL-LEADING ZERO

HELP! PL/SQL-LEADING ZERO

From: Ho <kowho_at_singnet.com.sg>
Date: Sat, 04 Nov 2000 23:26:01 GMT
Message-ID: <8u266p$bo2$1@coco.singnet.com.sg>

I need to create a table with 1000 records. I issue the INSERT command within a loop.

INSERT INTO TEST (RUNNO) VALUES(I) After running the SQL, the records are:

1
2
3.....

What I want is :

0001
0002
.
.
.

0999
1000

How to achieve this ?

Many thanks for your help in advance. Received on Sat Nov 04 2000 - 17:26:01 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US