2019-06-19.sql 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. update frame_dict set dict_text='待主考学校审核提交' where dict_name='record_status' and dict_text='待主考学校审核';
  2. -- Create table
  3. create table pl_std_record_school
  4. (
  5. id number(10) not null,
  6. year_code varchar2(6),
  7. join_school_id number(10),
  8. school_id number(10),
  9. status number(1)
  10. )
  11. ;
  12. -- Add comments to the table
  13. comment on table pl_std_record_school
  14. is '衔接学校上报情况表';
  15. -- Add comments to the columns
  16. comment on column pl_std_record_school.year_code
  17. is '批次码,6位数字';
  18. comment on column pl_std_record_school.join_school_id
  19. is '衔接学校ID,和机构表关联';
  20. comment on column pl_std_record_school.school_id
  21. is '主考学校ID,和机构表关联';
  22. comment on column pl_std_record_school.status
  23. is '上报状态;0:未上报,1:已上报';
  24. -- Create/Recreate primary, unique and foreign key constraints
  25. alter table pl_std_record_school
  26. add constraint PK_STD_RECORD_SCHOOL_ID primary key (ID);
  27. -- Create sequence
  28. create sequence SEQ_PL_STD_RECORD_SCHOOL
  29. minvalue 1
  30. start with 1
  31. increment by 1;