how to execute year(date)mysql query in tmysqlinput component

Highlighted
Eight Stars

how to execute year(date)mysql query in tmysqlinput component

HI All

Am trying to execute 

SELECT * FROM a where year(timestamp_column)='2017';

in tmysqlinputcomponent .but am unable to get the result.can any one tell me the solution

 

"SELECT
`products_urls`.`id`,
`products_urls`.`modified`
FROM `products_urls` where YEAR( modified)='2017'"

 

this is my query in tmysqlinputcomponent

 

Thanks

Rekha

 


Accepted Solutions
Eight Stars

Re: how to execute year(date)mysql query in tmysqlinput component

ya thank you i got solution i missed `modified` for modified .

now it is working fine


All Replies
Seven Stars

Re: how to execute year(date)mysql query in tmysqlinput component

You mean you get no rows from the input component? 

A screenshot would be very helpful.

 

Eight Stars

Re: how to execute year(date)mysql query in tmysqlinput component

ya thank you i got solution i missed `modified` for modified .

now it is working fine

Seven Stars

Re: how to execute year(date)mysql query in tmysqlinput component

oh alright cool.

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch