Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 26 Dec 2003 @ 18:18:11 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: Dynamic SQL in Tera data
 
From:   Anomy Anom

<-- Anonymously Posted: Friday, December 26, 2003 12:46 -->

You can use DBC.SYSEXECSQL function in SP with your SQL string as input parm to execute the SQL dynamically. The DBC.COLUMNS give you the list of columns for a given table. The other option is using DBC.COLUMNS in BTEQ , EXPORT the dynamic SQL into a file and then execute the exported SQL file in next step.



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023