Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Use a table and column name dinamically

$
0
0
Hi!

I have a table with two columns:

table_name
column_name

And I need to use the values dinamically in the sql of an 'Table Input'. I have read that you can´t use parameters in tables and columns names so I´m trying to use variables like this:

select ${column_name} from ${table_name}

But i don´t know the right way to do it. Can anyone help me? I have tried using the 'Set Variables' job but it throw "Only 1 input row was expected to set the variables and at least 2 were received."

Thanks in advance.

Viewing all articles
Browse latest Browse all 16689

Trending Articles