Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
1.22/5 (2 votes)
See more:
HI ALL

Pls find the below query
SQL
select * from table_name

i am getting the output as 1,2,3,4
But i need the output as 01,02,03,04

Can anyone have an idea.

Rgds
Jagadesh
Posted
Updated 21-Jun-12 23:48pm
v2
Comments
Sergey Alexandrovich Kryukov 15-Apr-13 1:24am    
Please stop posting non-answers as "solution". It can give you abuse reports which eventually may lead to cancellation of your CodeProject membership. And the fact you even self-accepted on formally is just outrageous, a sure way for a ban. I hope you won't do it after this warning.

Comment on any posts, reply to available comments, or use "Improve question" (above).
Also, keep in mind that members only get notifications on the post sent in reply to there posts.
—SA

1 solution

You write "Oracle" as tag, so I assume you could use PLSQL / a stored procedure to achieve this.

So here is my fist link: http://translate.google.at/translate?hl=de&langpair=de%7Cen&u=http://www.datenbank-plsql.de/ (Sorry, it's originally in German) ...

UPDATE: HERE I found something interesting:
Oracle: 
SELECT '0' || a, '0' || b, '0' || c ,'0' || d FROM table_name 

should work
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900