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
How to use subqueries with the exists operator in oracle?
How to write date and time interval literals in oracle?
How we can able to import our own template (users designed MS-Word templates) which has many tabular columns; need to pass some values generate by Oracle-reports9i? Actually need to import more than 400 MS-Word templates into Oracle Reports-9i to minimize layout design in Reports.
How to invoke the data pump export utility?
What is the use of oracle?
What are transaction isolation levels supported by oracle?
Can we create trigger on materialized view in oracle?
how the indexes are stored in the Oracle Database?
What is the relation of a user account and a schema in oracle?
What are the restrictions in a oracle read only transaction?
How to commit the current transaction in oracle?
What is columnar storage what is the advantage?
How to turn on or off recycle bin for the session?
How to apply filtering criteria at group level in oracle?
What are the roles of dba?