Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Does Teradata support database/schema aliases - forum topic by kdimov

$
0
0

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: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>