Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

goto in SQL server in production

DECLARE @condition1 bit = 1;

-- Go to the section of code labeled "ExecB"
IF (@condition1 = 1) GOTO ExecB; 
  
ExecA:
    print 'A - Skipped'
    
ExecB:
    print 'B - Executed'
 
PREVIOUS NEXT
Tagged: #goto #SQL #server #production
ADD COMMENT
Topic
Name
6+4 =