select to_char('10','10')
from dual
This gives me an error oRA-1481 INVALID NUMBER FORMAT MODEL
why? pls help
Answer Posted / kumar
We can use TO_CHAR function in two ways.
1. To convert a number into a character.
TO_CHAR(-) will take one parameter i.e, number
2. To convert a date into a character.
TO_CHAR(-,-) will take two parameters
i) first parameter is the date
ii) Second parameter is format in which we have to
convert, that to the second parameter should be enclosed
with single Quotes.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Is there a combination of "like" and "in" in sql?
What is blob data type in oracle?
What is the purpose of tables, private synonyms and public synonyms in Oracle?
What is Undo Management Advisor in Oracle?
What is a private synonym?
Please explain joins in oracle?
how to handle exceptions in post production
How a tablespace is related to data files?
Why is oracle database so popular?
What are the arithmetic operations?
what are bitmap indexes? How does they work?
How to use "while" statements in oracle?
what is the dual table in oracle?
What is transport network substrate (tns) in oracle?
How to change user password in oracle?