Advertisement
Guest User

output2

a guest
May 8th, 2019
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.27 KB | None | 0 0
  1. 1> CREATE FUNCTION dbo.TestFunction2 (@Int INT)
  2. 2> RETURNS INT
  3. 3> AS
  4. 4> BEGIN
  5. 5> WHILE @Int < 10
  6. 6> BEGIN
  7. 7> SET @Int = @Int + 2
  8. 8> END
  9. 9> RETURN @Int
  10. 10> END
  11. 11> GO
  12. 1> SELECT dbo.TestFunction2(5)
  13. 2> GO
  14.            
  15. -----------
  16.          11
  17.  
  18. (1 rows affected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement