Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Start from specific sql in Stored Procedure - response (3) by Kawish_Siddiqui

$
0
0

Following might help you

Replace Procedure ABC (IN STEP_ID  INTEGER)
Declare  RESUME_NEXT Varchar(10)
BEGIN
SET RESUME_NEXT = 'false';
IF (RESUME_NEXT = 'true' OR STEP_ID = 51) THEN
	INSERT INTO ....
	SET RESUME_NEXT = 'true';
END IF; 

IF (RESUME_NEXT = 'true' OR STEP_ID = 53) THEN
	UPDATE ....
	SET RESUME_NEXT = 'true';
END IF; 

 

PS: Please bear with syntax.


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>