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
Which sql most popular?
Is sql considered coding?
How do I run sql profiler?
Why do we create views in sql?
What is union and union all keyword in sql and what are their differences?
What is the difference between row level and statement level trigger?
What is t-sql? : Transact sql
What is dialect in sql?
How can we implement rollback or commit statement in a trigger?
what is difference between delete and truncate commands? : Sql dba
Can a select statement fire a trigger?
What is trigger types in sql?
What are pl/sql packages?
What is identity column in sql server?
Is sql harder than python?