ORACLE TO_DATE Question

Asked 2 years ago, Updated 2 years ago, 42 views

The date on the ORACLE DB is in the form of 202201241201 (YYYYMMDDHHMI) in CHAR format. I'd like to convert this to date format using TO_DATE function in Python's query statement Is there a way to convert the entire column and get it instead of just one specific column?

oracle

2022-09-20 11:18

1 Answers

According to document :

SELECT TO_DATE(column1, 'YYYYMMDDHHMI') as column1date
FROM table1;


2022-09-20 11:18

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.