Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Issue in date format while inserting record in table of MYSQL database

Hi All,
I want to capture job success status value in table  "talend_job_status" once the job execution is successful.
My schema for tMySQLRow component is given below :-
0683p000009MDbf.png
My Query in this component is as follows :- 
"INSERT INTO talend_job_status 
VALUES ('"+jobName+"','"+TalendDate.getDate("MM/dd/yyyy HH:mm:ss")+"',1)"

Schema of table  "talend_job_status" is given below :-
0683p000009MDVs.png
But once job execution is complete I am unable to capture status because I am getting error which is as follows :- 
0683p000009MDT9.png
Can anyone please suggest me what is wrong in my talend development ? Valuable suggestion is welcome.
Labels (2)
1 Solution

Accepted Solutions
vapukov
Master II
Master II

3 Replies
vapukov
Master II
Master II

default forMySQL datetime format = yyyy-MM-dd HH:mm:ss
if You have 03/07/2017 15:54:39 in source, You need convert it to proper format
Anonymous
Not applicable
Author

Hi,
Thanks for your reply.
But we I execute SELECT query the data is shown below :- 
Format of date is different here 
0683p000009MDbk.png
vapukov
Master II
Master II

https://dev.mysql.com/doc/refman/5.7/en/datetime.html
presentation forms could be many, so - just test it