select to_char('10','10')
from dual
This gives me an error oRA-1481 INVALID NUMBER FORMAT MODEL
why? pls help
Answer Posted / mohammad islam
The format is to_char('10','0,999.99')
or to_char(10,'0,999.99')
What is the meaning of it? It means 10 has to be 4 digit
long number with comma after the first digit and 2 digit
decimal places
like 0,010.00
But for to_char('10','0999.99'), the result would be
0010.00 because 4 digit before the decimal place with no
comma and 2 digit after the decimal place
And for TO_CHAR(1230,'00,999.99'), the result is
01,230.00(as you see 5 digit before decimal and 2 digit
after decimal and comma after 2 digit.
I hope it will clear everything
Thanks,
Mohammad Islam
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
State all possible different index configurations a table can possibly have?
How to empty your oracle recycle bin?
What is null value in oracle?
Explain the difference between sap and oracle?
What is a user account in oracle?
What is the difference between a primary key & a unique key?
How to specify default values in insert statement using oracle?
material view and view disadvantages?
What is concurrency in oracle?
What are oracle functions?
How to connect to the server with user account: sys?
Can we convert a date to char in oracle and if so, what would be the syntax?
There are n numbers of flatfile of exactly same format are placed in a folder.Can we load these flatfile's data one by one to a single relational table by a single session??
Can a parameter be passed to a cursor?
What is a subquery?