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

View solution in original post


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

View solution in original post

Seven Stars

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

oh alright cool.

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 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog