Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Dynamic Sql in stored Procedure - forum topic by choppadandi

$
0
0

Hello ALL,
 
Is it possible to give host variables in slection list in dynamic sql in stored procedure.
For ex: select :Col1 , :Col2  from :database.tablename  where source_system = : col3'
 
for our process have to fetch from different cols from same table  based on source_system  and from different databases , table names are same.
 
 

Forums: 

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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