Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. USE [Medium]
  2. GO
  3.  
  4. DELETE FROM [Post_Tag_Junction]
  5. DELETE FROM [Posts]
  6. DELETE FROM [Tags]
  7.  
  8.  
  9. INSERT INTO [Tags]
  10. VALUES
  11. ('Angular'),
  12. ('React')
  13.  
  14. INSERT INTO [Posts]
  15. VALUES (
  16. 'angular-one-time-binding-syntax',
  17. 'Angular one-time binding syntax',
  18. 'Angular 1.3 shipped with an awesome new performance enhancing feature - one-time binding.',
  19. 1,
  20. GETDATE())
  21.  
  22. INSERT INTO [Post_Tag_Junction]
  23. VALUES
  24. ('angular-one-time-binding-syntax', 'Angular'),
  25. ('angular-one-time-binding-syntax', 'React')
  26.  
  27.  
  28. SELECT *
  29. FROM [Posts]
  30. WHERE [Slug] = 'angular-one-time-binding-syntax'
  31.  
  32. SELECT [TagName]
  33. FROM [Post_Tag_Junction]
  34. WHERE [PostSlug] = 'angular-one-time-binding-syntax'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement