清除多余条目命令.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. select distinct * into #temp from dindan
  2. go
  3. delete dindan
  4. go
  5. insert dindan select * from #temp Sqlclub
  6. go
  7. drop table #temp
  8. go
  9. select distinct * into #temp from dindansp
  10. go
  11. delete dindansp
  12. go
  13. insert dindansp select * from #temp Sqlclub
  14. go
  15. drop table #temp
  16. go
  17. select distinct * into #temp from photoprint
  18. go
  19. delete photoprint
  20. go
  21. insert photoprint select * from #temp Sqlclub
  22. go
  23. drop table #temp
  24. go
  25. select distinct * into #temp from dindanbukuan
  26. go
  27. delete dindanbukuan
  28. go
  29. insert dindanbukuan select * from #temp Sqlclub
  30. go
  31. drop table #temp
  32. go
  33. select distinct * into #temp from dindanbukuan2
  34. go
  35. delete dindanbukuan2
  36. go
  37. insert dindanbukuan2 select * from #temp Sqlclub
  38. go
  39. drop table #temp
  40. go
  41. select distinct * into #temp from client
  42. go
  43. delete client
  44. go
  45. insert client select * from #temp Sqlclub
  46. go
  47. drop table #temp
  48. go
  49. select distinct * into #temp from burncdreg
  50. go
  51. delete burncdreg
  52. go
  53. insert burncdreg select * from #temp Sqlclub
  54. go
  55. drop table #temp
  56. go
  57. select distinct * into #temp from digitalwork
  58. go
  59. delete digitalwork
  60. go
  61. insert digitalwork select * from #temp Sqlclub
  62. go
  63. drop table #temp
  64. go
  65. select distinct * into #temp from mywork
  66. go
  67. delete mywork
  68. go
  69. insert mywork select * from #temp Sqlclub
  70. go
  71. drop table #temp
  72. go
  73. select distinct * into #temp from dindanjd
  74. go
  75. delete dindanjd
  76. go
  77. insert dindanjd select * from #temp Sqlclub
  78. go
  79. drop table #temp
  80. go
  81. select distinct * into #temp from dindansp2
  82. go
  83. delete dindansp2
  84. go
  85. insert dindansp2 select * from #temp Sqlclub
  86. go
  87. drop table #temp
  88. go
  89. select distinct * into #temp from dindansp3
  90. go
  91. delete dindansp3
  92. go
  93. insert dindansp3 select * from #temp Sqlclub
  94. go
  95. drop table #temp
  96. go