Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Insert Date into Oracle DB (Date column)

Hi,
How to insert into a Oracle DB column that only supports Date type, using a tOracleRow component, a date in the format yyyy/mm/dd HH:mm:ss ? I may have already the Date in Talend Date format, or I may have a String (it's indifferent).
Thanks
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,
I've solved it with: TO_DATE('20140211093358', 'YYYYMMDDHH24MISS') , like I found it's done in Oracle sql language.

View solution in original post

3 Replies
Anonymous
Not applicable
Author

The Talend Date format is exactly the Java Date format and the tOracleOutput component takes that as Date. Oracle DATE type also stores the time unlike other database which truncates the time in DATE typed columns.
Anonymous
Not applicable
Author

Hi,
I've solved it with: TO_DATE('20140211093358', 'YYYYMMDDHH24MISS') , like I found it's done in Oracle sql language.
Anonymous
Not applicable
Author

You can do this but you lose the possibility to check the input data for correct format and create rejects and helpful log outputs.