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 pl/sql table? Why is it used?
What are expressions?
What are the constraints available in sql?
Is a view faster than a stored procedure?
Can a foreign key be null?
How do I start pl sql?
What does the argument [or replace] do?
What is fmtonly in sql?
Can a commit statement be executed as part of a trigger?
How to create your own reports in sql developer?
what are the differences among rownum, rank and dense_rank? : Sql dba
Why is partition used in sql?
how can we take a backup of a mysql table and how can we restore it. ? : Sql dba
what is try_catch block in procedure
How does stored procedure reduce network traffic?