Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 16 Dec 2008 @ 17:08:43 GMT


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


Subj:   Re: %TYPE and %ROWTYPE equivalent in Teradata
 
From:   Victor Sokovin

  How can we achieve this in teradata? Is there any equivalent functions avl?  


No, there is none.


  Or we have to declare all the variables explicitly?  


Yes, and you could probably do a parsing exercise in your wrapper scripts and use such Teradata functions as TYPE(table_name.column_name) to determine the data type of each column and then assign it to the cursor variable without really hardcoding the data type.

But then again you could just design a *Teradata* application and forget altogether about porting the Oracle code. In my opinion, there is absolutely no benefit in the latter.


Victor



     
  <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