h-you / branches / ddl / 20170614_SQL.txt @ 283
履歴 | 表示 | アノテート | ダウンロード (1.55 KB)
| 1 | 198 | h-you | -- ????????f?[?^  | 
      
|---|---|---|---|
| 2 | drop table if exists depositdatadetail cascade;  | 
      ||
| 3 | |||
| 4 | create table depositdatadetail (  | 
      ||
| 5 | ORDERERSDIVISION decimal(5,0) not null comment '???????'  | 
      ||
| 6 | , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'  | 
      ||
| 7 | , TARGETDATE decimal(6,0) not null comment '???N??'  | 
      ||
| 8 | , REQUESTNO decimal(10,0) not null comment '????No'  | 
      ||
| 9 | , ORDERNO decimal(2,0) comment '??t???'  | 
      ||
| 10 | , DEPOSITAMOUNT decimal(10,0) comment '???????z'  | 
      ||
| 11 | , DISCOUNTAMOUNT decimal(10,0) comment '?l???????z'  | 
      ||
| 12 | , CNSTRPRICE decimal(10,0) comment '?????'  | 
      ||
| 13 | , FEES decimal(10,0) comment '????'  | 
      ||
| 14 | , OTHERADJUSTMENTS decimal(10,0) comment '?????'  | 
      ||
| 15 | , DIFFERENCEAMOUNT decimal(10,0) comment '????'  | 
      ||
| 16 | , CONFIRMATIONPERSONCODE decimal(8,0) comment '?m?F?S????R?[?h'  | 
      ||
| 17 | , CONFIRMATIONDATE date comment '?S????m?F???t'  | 
      ||
| 18 | , CONFIRMATIONENDFLG decimal(1,0) comment '?m?F?????t???O'  | 
      ||
| 19 | , NOTE varchar(120) comment '???l'  | 
      ||
| 20 | , ENTRYDATE datetime comment '?o?^???t'  | 
      ||
| 21 | , UPDATEDATE datetime comment '?X?V???t'  | 
      ||
| 22 | , constraint depositdatadetail_PKC primary key (ORDERERSDIVISION,ORDERERSCODE,TARGETDATE,REQUESTNO)  | 
      ||
| 23 | ) comment '????????f?[?^' ;  | 
      ||
| 24 | |||
| 25 | DROP TABLE IF EXISTS RequestOrderDate;  | 
      ||
| 26 | -- ?????????t?f?[?^  | 
      ||
| 27 | CREATE TABLE RequestOrderDate  | 
      ||
| 28 | (  | 
      ||
| 29 | ConstructionCode decimal(10,0) unsigned NOT NULL COMMENT '?H???R?[?h',  | 
      ||
| 30 | 217 | h-you | InvoiceNo decimal(9,0) NOT NULL COMMENT '??????No',  | 
      
| 31 | 198 | h-you | SendDate date NOT NULL COMMENT '???????????X????',  | 
      
| 32 | EntryDate datetime NOT NULL COMMENT '?o?^???t',  | 
      ||
| 33 | 217 | h-you | UpdateDate datetime NOT NULL COMMENT '?X?V???t',  | 
      
| 34 | PRIMARY KEY (ConstructionCode, InvoiceNo)  | 
      ||
| 35 | 198 | h-you | ) COMMENT = '?????????t?f?[?^';  | 
      
| 36 |