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
Define SQL and state the differences between SQL and other conventional programming Languages?
What is the max nvarchar size?
What are the conditions an underlying table must satisfy before a cursor can be used by a positioned update or delete statement? : Transact sql
Can we create view in stored procedure?
Which column in the user.triggers data dictionary view shows that the trigger is a pl/sql trigger?
What is substitution variable?
what is rollback? : Sql dba
what is try_catch block in procedure
What is trigger explain with example?
what is 'mysqlshow'? : Sql dba
What are the basic techniques of indexing?
What is bind variable in pl sql?
What is the difference between a procedure and a function?
how to convert character strings to dates? : Sql dba
What are all ddl commands?