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 ?    138 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are aggregate and scalar functions? : Sql dba

727


How do I run a sql script?

722


What is row_number () in sql?

717


How to display the records between two range in Oracle SQL Plus?

866


How do you respond to dementia behavior?

718






what are the differences between binary and varbinary? : Sql dba

708


what is the use of friend function? : Sql dba

721


What is the purpose of the primary key?

747


List the various privileges that a user can grant to another user?

768


How many types of cursors are available in pl/sql?

764


What is the cause of mutating table error and how can we solve it?

775


what are the limitations of identity column? : Transact sql

818


What is not in sql?

662


What operators deal with null?

809


How do sql databases work?

701