Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Fixed column length with select query

user12050217Jul 15 2010 — edited Jul 15 2010
Hello,

Oracle 10.2.0.1
Windows xp

I am having one table in which we have store customer name, address and phone numbers. I need the select query output in the fixed column (as column width) without removing trailing blank spaces for varchar2. When i gives :

select name || ' ' || add || ' ' || phone || ' ' || pin item from cust_table where rownum<=5;

It removes blank spaces from column values. I need them fixed length.

I need the addition of columns so that i can get one column and then i will populate in my dropdown list control.

I know for column <column_name> format command, but that is for sqlplus; while i need as select query output.

Please tell me, if i am unclear in my question anywhere.

Thanking you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 12 2010
Added on Jul 15 2010
1 comment
828 views