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


Please Help Members By Posting Answers For Below Questions

Explain what are the different type of segments?

582


What happens to the current transaction if the session is ended?

533


What is the database name in oracle?

540


Explain what does a control file contain?

616


ABOUT IDENTITY?

1567






What is a tns service name?

540


What is program global area (pga) in oracle?

611


How to best split csv strings in oracle 9i?

597


how the indexes are stored in the Oracle Database?

1745


How are extents allocated to a segment?

585


how to handle exceptions in post production

955


How to update a table row with a record?

600


How to run the anonymous block again?

605


How to drop an index in oracle?

611


What is Reduced List of Values?

1710