what is the difference between to_char and to_date
functions?

Answer Posted / rajesh

to_char function is used to convert the given data into
character....
eg:to_char(sysdate,'month') which returns month alone...

to_date is used to convert the given data into date data
formate data type....

eg: to_date('070903', 'MMDDYY') would return a date value
of July 9, 2003.

Is This Answer Correct ?    137 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define a temp table?

544


How does sql*loader handles newline characters in a record? : aql loader

578


what is user defined functions? : Sql dba

540


What are the different types of database management systems?

519


Can pl sql procedure have a return statement?

541






What are all the ddl commands?

616


what are all types of user defined functions? : Sql dba

534


discuss about myisam index statistics collection. : Sql dba

516


Write a sql query to find the names of employees that begin with ‘a’?

568


What are data types in pl sql?

548


what is single byte over head in oracle..?

1860


Which is faster joins or subqueries?

544


What are its different types of dbms?

531


what is self-join? : Sql dba

558


How do I partition a table in sql?

531