Guest User

Untitled

a guest
Dec 12th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. CREATE TABLE _test(
  2. [name] NVARCHAR(50),
  3. related_name NVARCHAR(50)
  4. )
  5. GO
  6.  
  7. INSERT INTO dbo._test
  8. ([name], related_name)
  9. VALUES
  10.  
  11. ('a', 'b'),
  12. ('b', 'c'),
  13. ('c', 'd'),
  14. ('e', 'f'),
  15. ('f', 'g')
  16.  
  17. select * from my_func('a')
  18.  
  19. result
  20. ------
  21. a
  22. b
  23. c
  24. d
  25.  
  26. select * from my_func('e')
  27.  
  28. result
  29. ------
  30. e
  31. f
  32. g
Add Comment
Please, Sign In to add comment