Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

using IF and ELSE if to tell SSMS to jump to that section of code

$
0
0
USE GTM_ODS
First, i declare the variable and set it . . . . 
DECLARE @FTA VARCHAR (10)
SET @FTA= 'Korea'

IF @FTA = 'Korea'
Select...............known good code........................etc

ELSE IF @FTA = 'GSP'
Sel

Viewing all articles
Browse latest Browse all 3145

Trending Articles