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 sql in mysql? : Sql dba
What is trigger in pl sql?
Does sql full backup truncate logs?
Does oracle roll back the transaction on an error?
How many subqueries can be nested in a statement?
What is before and after trigger?
Is left join faster than join?
How do you create a unique index?
what is the command line end user interface - mysql? : Sql dba
What is java sql drivermanager?
Do stored procedures prevent sql injection?
What is difference between my sql and sql?
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
Is sql a backend language?
What is nvl?