I am looking to solve a problem where a procedure located in one schema queries data into one of two other schemas, based on input parameter. Think of it this way - the test tables are in schema TEST, while the production tables are in schema PROD. The behavior I want is:
REPLACE PROCEDURE Sample(IN Schema CHAR(32), OUT Result INTEGER) BEGIN SELECT Value INTO :Result FROM :Schema.TABLE; END;
Is something similar supported in Teradata?
Are there any other approaches to flip between test and production tables?
Forums: