e_ttoa_init_sequence.sql
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:5k
源码类别:

电子政务应用

开发平台:

Java

  1. --*****************************
  2. --DROP TABLE
  3. --*****************************
  4. --
  5. DROP TABLE  T_SEQUENCE 
  6. ;
  7. --*****************************
  8. --CREATE TABLE
  9. --*****************************
  10. --
  11. CREATE TABLE T_SEQUENCE ( 
  12.       SEQUENCE_NAME VARCHAR(40), 
  13.       SEQUENCE_VALUE INT,
  14.       CONSTRAINT PK_T_SEQUENCE124 PRIMARY KEY (SEQUENCE_NAME) )
  15. ;
  16. --*****************************
  17. --Intrializtion Data
  18. --*****************************
  19. --
  20. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_BOARDROOM_ID', 10000)
  21. ;
  22. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_CONFERENCE_ID',10000)
  23. ;
  24. ---************************************************************************
  25. ---Because of the  user "Administrator" as the 10000 account of this system,
  26. ---so the S_EMP_ID begin from 10001.
  27. ---*************************************************************************
  28. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_EMP_ID', 10001)
  29. ;
  30. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_DIVISION_ID', 10000)
  31. ;
  32. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_EQUIPMENT_ID', 10000)
  33. ;
  34. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_WORKFLOW_ID', 10000)
  35. ;
  36. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_WORKFLOW_FILE_ID', 10000)
  37. ;
  38. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_RECEIVED_DOC_ID', 10000)
  39. ;
  40. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_WORKFLOW_LOG_ID', 10000)
  41. ;
  42. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_WORKFLOW_SUBTASK_ID', 10000)
  43. ;
  44. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_WORKFLOW_EXECUTOR_ID', 10000)
  45. ;
  46. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_TASK_ID', 10000)
  47. ;
  48. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_ADDRESSLIST_ID', 10000)
  49. ;
  50. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_ADDRESSLIST_EMPLOYE_ID', 10000)
  51. ;
  52. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_DIRECTORY_ID', 10000)
  53. ;
  54. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_PUBLICATION_ID', 10000)
  55. ;
  56. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_REGULATION_ID', 10000)   
  57. ;
  58. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_ADDRESS_GROUP_ID', 10000)
  59. ;
  60. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_ATTACHFILE_SUBPATH_ID', 10000)
  61. ;
  62. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_AUTOMOBILE_ID', 10000)
  63. ;
  64. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_AUTOMOBILE_BOOKING_ID', 10000)
  65. ;
  66. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_AUTOMOBILE_MAINTAIN_ID', 10000)     
  67. ;
  68. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_BATCH_ID', 10000)    
  69. ;
  70. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_PECCANCY_ID', 10000)
  71. ;
  72. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_ACCIDENT_ID', 10000)
  73. ;
  74. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_WORK_RECORD_ID', 10000)
  75. ;
  76. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_DRIVING_FEE_ID', 10000)  
  77. ;
  78. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_WORKFLOW_TEMPLATE_ID', 10000)       
  79. ;
  80. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_SUBTASK_TEMPLATE_ID', 10000)  
  81. ;
  82. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_EXECUTOR_TEMPLATE_ID', 10000)
  83. ;
  84. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_HR_COMPONENT_ID', 10000)
  85. ;
  86. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_HR_DD_ID', 10000)
  87. ;
  88. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_HR_MEMBER_COR_ID', 10000)
  89. ;
  90. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_HR_MEMBER_SCHOOL_ID', 10000)
  91. ;
  92. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_HR_INNER_RESUME_ID', 10000)
  93. ;
  94. --***********************************************
  95. --The followed data not in SequenceConstant.java
  96. --***********************************************
  97. --
  98. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_BOOK_ID', 10000)
  99. ;
  100. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_EMPLOYEE_GROUP_ID', 10000)
  101. ;
  102. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_RETURN_ID', 10000)
  103. ;
  104. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_SENT_MSG_ID', 10000)
  105. ;
  106. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_RECEIVED_MSG_ID', 10000)
  107. ;
  108. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_LEAVE_WORD_ID', 10000)
  109. ;
  110. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_MSG_ATTACHMENT_ID', 10000)
  111. ;
  112. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_BORROW_ID', 10000)
  113. ;
  114. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_ARCHIVE_ID', 10000)
  115. ;
  116. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_ATTACHMENT_ID', 10000)
  117. ;
  118. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_BULLETIN_ID', 10000)
  119. ;
  120. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_BUDGET', 10000)
  121. ;
  122. INSERT INTO T_SEQUENCE(sequence_name,  sequence_value) VALUES('S_HR_TRAIN_ID', 10000)
  123. --*****************************
  124. --Intrializtion Data
  125. --*****************************