PDI parameter in select statement

I want to ask a question about the Pentaho. I use Pentaho data Integration(Kettle). I want to use a parameter in a select statement. I searched various forums and did not find any solution. My problem is that I want to get the result from different databases. How can I use a parameter to retrieve data from 2 or more databases? I have two transformations.

  • select catalog_name from information_schema.schemata where catalog_name like "%db"
  • select data_name from ${catalog_name}.dbo.database_name

Is there a mistake that says Syntax error or access violation?

+4
source share
2 answers

, . , 1 ( ). # 2 , .

, , .

, , , - Replace variables in script 2.

, , .

0

, SQL SQL.

Transformation and details of first table input

? . , Kettle . schema_name , . . , SQL . . , ? MySQL. SQL , MS SQL Server. , -.

:

Configuration Details of table input 2

, script, . .

+2

Source: https://habr.com/ru/post/1541080/


All Articles