Dynamic SQL Table Names in Turbo Integrator
Posted: Wed May 19, 2010 8:10 pm
I know that we can use Parameters within the WHERE clause of SQL statements in the TI like
But I want to change the Table Name 'dynamically' in the FROM clause so that the Table Name is based on whatever is the value in the Parameter. The Table Names in the backend database (Oracle in my case) changes from year to year e.g. TableName08, TableName09, TableName10 etc.
I tried the following, but it doesnt work
Any help would highly be appreciated.
Code: Select all
SELECT *
FROMTableName
WHERE ColumnName='?myPrarmeter?'
I tried the following, but it doesnt work
Code: Select all
SELECT *
FROM'?myTableName?'
WHERE ColumnName='?myPrarmeter?'