if(@CUSTNAME='' and @BrandCode= '' and @SLeepCust = 0)
Begin
DELETE #TempCust where EMPCODE not in (@EMPCODE);
select * From #TempCust where IsNUll(SLeepCust,'')<>'1' order BY Sno
End
else if(@CUSTNAME='' and @BrandCode= '' and @SLeepCust = 1)
Begin
DELETE #TempCust where EMPCODE not in (@EMPCODE);
select * From #TempCust order BY Sno
End
서버페이지연동 앱을 만들고있는데요...
서버페이지에서 프로시져를 가져오는식인데...
프로시저에 if else if 구문이 8개정도가있어서..
where절에 case문으로 바꿔보려고합니다...
혹시 도움좀 요청해도되는지.... 질문 남겨봅니다..