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

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.

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

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

APIs for Dummies

View this on-demand webinar about APIs....

Watch Now