h-you / branches / ddl / 20171130_SQL.txt @ 309
履歴 | 表示 | アノテート | ダウンロード (797 Bytes)
1 |
-- ?H??????????f?[?^ |
---|---|
2 |
drop table if exists PeriodAvoidance cascade; |
3 |
|
4 |
create table PeriodAvoidance ( |
5 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
6 |
, ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O' |
7 |
, FieldNo decimal(2,0) not null comment '?`?F?b?N???t?B?[???h???' |
8 |
, EntryDate datetime not null comment '?o?^???t' |
9 |
, UpdateDate datetime not null comment '?X?V???t' |
10 |
, constraint PeriodAvoidance_PKC primary key (ConstructionCode,ConstructionStatusFlg,FieldNo) |
11 |
) comment '?H??????????f?[?^' ; |
12 |
|
13 |
create index PeriodAvoidance_Index1 |
14 |
on PeriodAvoidance(ConstructionCode); |
15 |
|
16 |
create index PeriodAvoidance_Index2 |
17 |
on PeriodAvoidance(ConstructionStatusFlg); |
18 |
|
19 |
create index PeriodAvoidance_Index3 |
20 |
on PeriodAvoidance(FieldNo); |
21 |
|