oracle - PL/SQL - printing a value -


i have field base has values example 0000000000. need print in txt file through stored procedure. data type char(10). while printing printing single value 0.

please give me suggestions correct this.

option1:

you should try using lpad function.

select lpad(columnname, 10, '0') yourtable; 

option2:

try forcing to_char while printing


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -