Home Page for the TeradataForum
 
https:

Archives of the TeradataForum

Message Posted: Tue, 11 Nov 2008 @ 13:42:04 GMT


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


Subj:   Re: Multi Statement Transaction in Stored Procedure
 
From:   Christian Schiefer, makeITdone

Hi,

try

     begin transaction;
     locking table tablea for write;

     sel value
           into :output_value
     from tablea;

     update tablea
          set value = value + 1;

     end transaction;

BR

Christian



     
  <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: 28 Jun 2020