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
Explain a synonym?
What are the roles of dba?
How can we create the complete backup of data in the oracle.
What is the difference between a hot backup and a cold backup in oracle?
How to define a variable to match a table column data type?
What is the difference between $oracle_base and $oracle_home?
What is program global area (pga) in oracle?
How to install oracle odbc drivers?
What is sharded cluster?
What is the maximum limit on the number of columns in a table?
In which language oracle has been developed?
List the parts of a database trigger.
What is pragma autonomous transaction in oracle?
How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?
How to import one table back from a dump file?