简体   繁体   中英

Informatica - How to Pass queries from a table to SQL Transformation and get the results

SO heres what I am trying to do. I have a table which has 2 columns - QC_Check and Query. For each QC_Check I have a query. There are several records like this.

Is there a way using SQL transformation that, I can fetch the SQL query stored in the Query column to Informatica, run the queries in Teradata and get the results stored somewhere.

Although, I have not tried it myself, this should be possible using SQL transformation in Query mode with Dynamic SQL Queries. Use the table with Query column as a source. Create a SQL transformation with Query mode. Connect the Query column to the SQL transformation. 在此处输入图片说明

Write ~Query_Port~ in the SQL editor in the SQL transformation:

在此处输入图片说明

If you want to capture the results from your query, you have to configure output ports for columns you retrieve from the database.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM