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

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

about inputoracle to Mysqloutput

hi

i have open studio DI 6.5.1.  and i trying to run a job with oracleinput to mysqlouput

oracle query is "select to_date(substr(startdate,1,15),'YYYYMMDD HH24MISS') as startdate from a_table"

and the data insert into mysql to "0000-00-00"

please, let me know anybody.

Labels (2)
14 Replies
Anonymous
Not applicable
Author

hi..

i tried to do as below images.  but the data set 0000-00-00 on mysql,

So, i changed my sql of oracle : "select substr(p.startdate,1,15) as startdate from awlotproduct where rownum<=10"

and data has been inserted on the mysql correctly.

Actually, data type the startdate column is char, so, i didn't need converting CHAR to TO_DATE.

i just wanna know how to insert to_date type on the mysql.

 

0683p000009LtLE.png0683p000009LtIR.png0683p000009LtLT.png0683p000009LtFn.png

manodwhb
Champion II
Champion II

i am not sure about mysql,since i am familiar with Oracle.

is YYYYMMDD HH24MISS format is allowed in mysql?

manodwhb
Champion II
Champion II

still you have issue?

Anonymous
Not applicable
Author

hi Manohar

i sorry for late replay.

Ok. mysql not allow date format to_date(startdate,'YYYYMMDD HH24MISS').

it may change to "str_to_date(startdate,'%Y%m%d %H%i%s')"

as i mention, i changed sql statement of oracle. so, the problems was fixed.

I really appreciate your time and effort to help.

 

manodwhb
Champion II
Champion II

@bangu00,please accept the solution.