I have written a SQL select query in tMysqlrow and want to print all the data from the select query to excel.
How can we do this?
For Simple Extraction and Loading of data from the dB, you can use tMysqlInput component and then feed it to the Subsequent Output Component. Here if you use the tMysqlrow it will return you the 1-record, Otherwise if your requirement is such that you need to run the multiple queries in tMysqlRow component..? then you can connect it as IterateFlow.
If its only simple extraction you can us the tMysqlInput component.
there is multiple select statement with union all. query attached
i will get around multiple rows in database if i run the query. But i dont know how to do it.
I have just connected tMysqlrow to tfileoutputexcel.
can you please show me how to do with an example. so it will help me
Here you can design your job as shown below. Make few settings on tFileOutputExcel -->Advanced Settings --> Append Existing File & Append Existing Sheet.
In tFileInput you can add one column as sql_query and in tFlowToIterate you can call this variable and set the same in tMysqlrow component then you can connect to the output.
Ok, then replace the tFileInputDelimitted File with the tMysqlInput Component and select that particular column from the table which has this sql_query and rest of the items are same.
You can run the same query through tMySQLInput Component since its a single select query. You do not need tMySQLrow for this flow. Can you let me know what is happening when you are trying to run it from tMySQLInput component?
Please appreciate our members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)
Try Talend Cloud free for 30 days.
Introduction to Talend Open Studio for Data Integration.
Practical steps to developing your data integration strategy.
Create systems and workflow to manage clean data ingestion and data transformation.