Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 20 Jan 2010 @ 12:03:48 GMT


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


Subj:   Cursor Inside a macro
 
From:   Ansari, Rehman

I need help in writing a macro on executing , a cursor inside should fetch tablenames stored in one of the column of a table and should display its output on screen,

Lets say a table Test have one column A which have table name X , Y and Z..

When I execute this macro it should display ..

     Select  * from  X;
     Select * from  Y;
     Select * from  Z;

And so on .. output should come on screen.


Regards.

Rehman.



     
  <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