Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 12 Aug 2011 @ 11:39:38 GMT


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


Subj:   Re: How to assign the value od dynamic sql ?
 
From:   Anomy Anom

<-- Anonymously Posted: Friday, August 12, 2011 07:25 -->

Hi Avinash,

If you have declared a variable inside the procedure, you can assign the value as follows:

     declare variable_num decimal(20,0);

     select num_value
     into variable_num
     from dbname.tablename

Please let know whether this is what you were looking for.



     
  <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