Organizational Research By

Surprising Reserch Topic

boostr.in questions - Question:How will you convert a date to char in Oracle give one example


 

 
 Similar to previous Oracle Interview question, this is also one of the popular question in various Oracle Interviews. to_char() function is used to convert date to character we can specify format also in which we want the output.
 
SELECT to_char( to_date('11-01-2012', 'DD-MM-YYYY') , 'YYYY-MM-DD') FROM dual;
 
or
 
SELECT to_char( to_date('11-01-2012, 'DD-MM-YYYY') , 'DD-MM-YYYY') FROM dual;
asked Sep 13, 2013 in ORACLE by anonymous
edited Sep 12, 2013
0 votes
10 views



Related Hot Questions



Government Jobs Opening


...