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 an inconsistent dependency?
Explain unique key in sql.
what happens if null values are involved in expressions? : Sql dba
Which is faster truncate or drop?
can sql servers linked to other servers like oracle? : Sql dba
What is t sql used for?
Is id a reserved word in sql?
What is sql prepared statement?
What is pessimistic concurrency control? : Transact sql
mention if it is possible to import data directly from t-sql commands without using sql server integration services? If yes, what are the commands? : Transact sql
What is a recursive join sql?
How can we debug in PL/SQL?
What is the difference between microsoft sql and mysql?
Explain ddl statements in pl/sql?
Does truncate release storage space?