プロジェクト

全般

プロフィール

統計
| リビジョン:

h-you / branches / ddl / 20180406_SQL.txt @ 355

履歴 | 表示 | アノテート | ダウンロード (1.2 KB)

1 342 h-you
-- ???????o?[?f?[?^
2
drop table if exists DepartmentCostData cascade;
3
4
CREATE TABLE DepartmentCostData(
5
  DepartmentCode DECIMAL (5, 0) UNSIGNED NOT NULL COMMENT '?????R?[?h'
6
  , DataYear SMALLINT (5) UNSIGNED NOT NULL COMMENT '?H???????E?H???N??'
7
  , DataCount DECIMAL (5, 0) UNSIGNED NOT NULL COMMENT '?f?[?^???'
8
  , EntryPersonCode DECIMAL (8, 0) UNSIGNED NOT NULL COMMENT '????S????R?[?h'
9
  , SuppliersCode DECIMAL (5, 0) UNSIGNED NOT NULL COMMENT '?x????R?[?h'
10
  , SuppliersName VARCHAR (120) COMMENT '?x??????'
11
  , PaymentContent VARCHAR (60) COMMENT '?x?????e'
12
  , DateOfBilling DATE NOT NULL COMMENT '??????'
13
  , DateOfPayment DATE NOT NULL COMMENT '?x????'
14
  , EntryPrice DECIMAL (12, 0) NOT NULL COMMENT '???z?i????j'
15
  , EntryPriceInTax DECIMAL (12, 0) NOT NULL COMMENT '???z?i????j'
16
  , SlipNumber VARCHAR (12) COMMENT '?`?[???'
17
  , ComplateFlg DECIMAL (1, 0) NOT NULL COMMENT '???????t???O'
18
  , ApprovalFlg DECIMAL (1, 0) NOT NULL COMMENT '???F?t???O'
19
  , EntryDate DATETIME NOT NULL COMMENT '?o?^???t'
20
  , UpdateDate DATETIME NOT NULL COMMENT '?X?V???t'
21
  , CONSTRAINT DepartmentCostData_PKC PRIMARY KEY (DepartmentCode, DataYear, DataCount)
22
) COMMENT '???????o?[?f?[?^';
23