what is the difference between to_char and to_date
functions?

Answer Posted / naveen

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 ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two types of exceptions.

807


explain advantages of myisam over innodb? : Sql dba

793


What is sql table?

680


How to select 10 records from a table?

827


Write an sql query to select all records from the table?

746






Can you have more than one trigger on a table?

701


Explain the difference between sql and mysql.

745


Is it possible to include an insert statement on the same table to which the trigger is assigned?

725


What is sqlservr exe?

673


what is the difference between cluster and non cluster index? : Sql dba

723


Why triggers are used?

732


Explian rowid, rownum? What are the psoducolumns we have?

752


what is acid property in database? : Sql dba

733


Difference between global and parameter variables?

1644


What is the difference between a primary key and a clustered index?

689