
Contributor
2017-07-06
11:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Insert Date values in Oracle Database
Team, I need to insert values for Date datatype column in Oracle. I’m using tOraclerow component to insert data into Oracle table. The target field in table is in DATE format. But when I try to insert I’m getting error like below, “ORA-01858 – a non-numeric character was found where a numeric was expected.” In the input flow of tOraclerow I tried to get the input in following formats, “YYYYMMDD”, “DD-MM-YYYY”, “DD-MMM-YY”, but getting the same error. Please let me know what is the format to insert data into Oracle date column. PS : The values in the table is like 06-Jul-17, 07-Jul-17.
342 Views
3 Replies

Specialist
2017-07-06
03:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You're feeding a string into a date, and that's what the error message describes. Dates are numeric values and require conversion from string values.
If the corresponding column in your Talend schema is a date, just pass that to Oracle.
If the corresponding column in your Talend schema is a date, just pass that to Oracle.
342 Views

Contributor
2017-07-07
10:38 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you provide a sample insert query for Date value ? EX : insert into emp (emp_id,date_of_join) values(??????????)
342 Views

Anonymous
Not applicable
2017-07-09
09:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sample Oracle Insert as required
create table emp(emp_id number, date_of_join date);
insert into emp values (1,to_date('10-Jul-17','DD-MON-YY'));
342 Views
