what is the difference between to_char and to_date
functions?
Answer Posted / sanjukata
to_char()is required to convert number type and date type
of value to character type.
try this
select ename,hiredate,to_char(hiredate,'day ddth mon yy')
from emp;
to_date()is required to convert charater type of value to
date type.
try this
select to_date('22092010','dd-mm-yy')from dual;
| Is This Answer Correct ? | 15 Yes | 3 No |
Post New Answer View All Answers
What is sqlcontext?
What is the use of nvl function?
What is pivot query?
List the ways to get the count of records in a table?
Which one is better sql or oracle?
Explain some predefined exceptions.
What are the sql aggregate functions?
what is myisam? : Sql dba
what are the different index configurations a table can have? : Sql dba
Write a sql query to find the names of employees that begin with ‘a’?
How to Declare Fixed Length String Value In PL SQL
What is mutating table error?
What is schema in sql?
How do you clear the screen in sql?
What is a join query?