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 mdb stand for?
Is coalesce faster than isnull?
What is sql catalog?
Is nosql relational?
How can I tell if sql is running?
explain the delete statements in sql
Explain foreign key in sql?
Explain the update statement in sql
what are the advantages and disadvantages of cascading style sheets? : Sql dba
how can you see all indexes defined for a table? : Sql dba
Are stored procedures faster than dynamic sql?
Is primary key clustered index?
How do I truncate a word?
How can we debug in PL/SQL?
how to select unique records from a table? : Sql dba