Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To_char format

Status
Not open for further replies.

anju123

Programmer
Joined
Jun 6, 2003
Messages
33
Location
CA
Hi! can anyone help me in finding out the reason behind this cause. When I do
select length(to_char('23456','99999.99')) from dual;

LENGTH(TO_CHAR('23456','99999.99'))
-----------------------------------
9

it returns the length as 9, where as I am specifying the format to be 8 character.

Can anyone tell me what is the reason behind it?
Thanks in advance.
 
Thanks Dima!
its clear to me now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top