Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 18 Apr 2003 @ 01:13:57 GMT


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


Subj:   Re: Exception in Stored Procedures.
 
From:   Taha, Sam

You would need to create an exit handler. The syntax is something like this:

DECLARE EXIT HANDLER FOR SQLEXCEPTION
BEGIN
        /* what u want to do when an error is raised before exiting */
        SET error_message = 'something went wrong';
END

The above block goes right after variable declarations.

Sam Taha
Teradata - Canada



     
  <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: 27 Dec 2016