select to_char('10','10')
from dual
This gives me an error oRA-1481 INVALID NUMBER FORMAT MODEL
why? pls help
Answer Posted / neha k
to_char function can take both Number and String Values but
one at a time.
ie. select to_char(10) from dual;
select to_char('10') from dual;
both are valid.
Another form of overloaded function to_char accepts two
arguments first is Date and second if its format in which
it needs to be converted as string.
ie. select to_char(sysdate,'YYYYMMDD') from dual;
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is a nvl function?
How to convert characters to numbers in oracle?
How to define a variable of a specific record type?
How do I know if oracle client is installed on windows?
What is an external table?
How to pass a parameter to a cursor in oracle?
WHAT IS ecc 6.0
What is raw datatype in oracle?
What is sharded cluster?
What is Trigger in Oracle?
What is a private synonym?
How to create a new tablespace in oracle?
How to use "for" statements in oracle?
What are joins, explain all types of joins?
15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.