h-you / trunk / ddl / 工事種別・構成リンクマスタ変更.sql @ 487
履歴 | 表示 | アノテート | ダウンロード (727 Bytes)
| 1 | 406 | h-you | -- ?H?????E?\???????N?}?X?^
 | 
      
|---|---|---|---|
| 2 | drop table if exists componenttotypemaster cascade;  | 
      ||
| 3 | |||
| 4 | create table componenttotypemaster (  | 
      ||
| 5 | TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'  | 
      ||
| 6 | , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['  | 
      ||
| 7 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????'  | 
      ||
| 8 | , EntryDate datetime not null comment '?o?^???t'  | 
      ||
| 9 | , UpdateDate datetime not null comment '?X?V???t'  | 
      ||
| 10 | , constraint componenttotypemaster_PKC primary key (TypeCode, ComponentCode)  | 
      ||
| 11 | ) comment '?H?????E?\???????N?}?X?^' ;  | 
      ||
| 12 | |||
| 13 | create index ComponentToTypeMaster_Index1  | 
      ||
| 14 |   on componenttotypemaster(TypeCode);
 | 
      ||
| 15 | |||
| 16 | create index ComponentToTypeMaster_Index2  | 
      ||
| 17 |   on componenttotypemaster(ComponentCode); |