Control flow in T-SQL SP using IF..ELSE IF - are there other ways? - Stack Overflow

Control flow in T-SQL SP using IF..ELSE IF - are there other ways? - Stack Overflow

瀏覽:1195
日期:2025-10-04
I need to branch my T-SQL stored procedure (MS SQL 2008) control flow to a number of directions: CREATE PROCEDURE [fooBar] @inputParam INT AS BEGIN IF @inputParam = 1 BEGIN ... END ELSE IF @inputParam = 3 BEGIN ... END ELSE IF @ ......看更多