Database Management System

Oracle SQL Interview Questions

Pinterest LinkedIn Tumblr

Write a SQL query to convert string to data format

The to_date function convert the string format date to the date format. When the developer want fetch the date format from the string, they can use to_date function. The DUAL table is a special one-row, one-column table present by default in Oracle and other database installations. The sysdate returns the current date from the oracle database server.


select to_date('2013/12/10', 'yyyy/mm/dd')  from dual;            
1 2 3 4 5 6 7 8 9 10

Write A Comment