meshdev

ger11script-no-constraints

Feb 19th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. --skript--
  2. drop table notunique purge;
  3. --
  4. create table notunique(
  5. numb number(1)
  6. );
  7. --
  8. insert into notunique values (1);
  9. insert into notunique values (2);
  10. --
  11. select * from notunique;
  12. commit;
  13. --
  14. INSERT INTO notunique
  15. SELECT * FROM notunique;
  16. --
  17. select count(*) from notunique;
  18. --
  19. select * from notunique;
  20. --
  21. insert into notunique values (3);
  22. select count(*) from notunique;
  23. --
  24. ROLLBACK;
  25. --
  26. rollback;
  27. --
  28. select count(*) from notunique;
  29. --
  30.  
  31. --------------------
  32. --output not copy--
  33.  
  34. Table NOTUNIQUE dropped.
  35.  
  36.  
  37. Table NOTUNIQUE created.
  38.  
  39.  
  40. 1 row inserted.
  41.  
  42.  
  43. 1 row inserted.
  44.  
  45.  
  46. NUMB
  47. ----------
  48. 1
  49. 2
  50.  
  51.  
  52. Commit complete.
  53.  
  54.  
  55. 2 rows inserted.
  56.  
  57.  
  58. COUNT(*)
  59. ----------
  60. 4
  61.  
  62.  
  63. NUMB
  64. ----------
  65. 1
  66. 2
  67. 1
  68. 2
  69.  
  70.  
  71. 1 row inserted.
  72.  
  73.  
  74. COUNT(*)
  75. ----------
  76. 5
  77.  
  78.  
  79. Rollback complete.
  80.  
  81.  
  82. Rollback complete.
  83.  
  84.  
  85. COUNT(*)
  86. ----------
  87. 2
Advertisement
Add Comment
Please, Sign In to add comment