MainApplication.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package com.yihu.util.sqlServer2Oracle;
  2. public class MainApplication {
  3. public static void main(String[] args) throws Exception {
  4. String[] tables1 = {"OutPatient"};
  5. String[] tables2 = {"Outpatient_Diag"};
  6. String[] tables3 = {"Outpatient_Drug"};
  7. String[] tables4 = {"Outpatient_Fee"};
  8. String[] tables5 = {"Inpatient_Drug"};
  9. String[] tables6 = {"Inpatient_Outdiag"};
  10. String[] tables7 = {"Inpatient_Longorder"};
  11. String[] tables8 = {"Inpatient_Fee"};
  12. String[] tables9 = {"Eds_Disp_Pres_Master"};
  13. MyThread myThread1 = new MyThread(tables1,"PK_Outpatient",22,100,67);
  14. MyThread myThread2 = new MyThread(tables2,"PK_Outpatient_Diag ",40,100,115);
  15. MyThread myThread3 = new MyThread(tables3,"PK_Outpatient_Drug",14,100,349);
  16. MyThread myThread4 = new MyThread(tables4,"PK_Outpatient_Fee",16,100,142);
  17. MyThread myThread5 = new MyThread(tables5,"PK_Inpatient_Drug",18,100,349);
  18. MyThread myThread6 = new MyThread(tables6,"PK_Inpatient_Outdiag",44,100,138);
  19. MyThread myThread7 = new MyThread(tables7,"PK_Inpatient_Longorder",18,100,41);
  20. MyThread myThread8 = new MyThread(tables8,"PK_Inpatient_Fee",18,100,123);
  21. MyThread myThread9 = new MyThread(tables9,"PK_Eds_Disp_Pres_Master",15,100,78);
  22. //�߳�����
  23. myThread1.start();
  24. myThread2.start();
  25. myThread3.start();
  26. myThread4.start();
  27. myThread5.start();
  28. myThread6.start();
  29. myThread7.start();
  30. myThread8.start();
  31. myThread9.start();
  32. }
  33. }