プロジェクト

全般

プロフィール

リビジョン 160

堀内7年以上前に追加

システムマスタ、法定福利費比率追加SQL

差分を表示:

branches/ddl/20170525_SQL.txt
1
DROP TABLE IF EXISTS SystemMaster_OLD;
2
CREATE TABLE SystemMaster_OLD As Select * from SystemMaster;
3
DROP TABLE IF EXISTS SystemMaster;
4

  
5
-- ????}?X?^
6
CREATE TABLE SystemMaster
7
(
8
	SystemCode decimal(3,0) unsigned NOT NULL COMMENT '???R?[?h',
9
	CompanyName1 varchar(60) DEFAULT '' NOT NULL COMMENT '?????P',
10
	CompanyName2 varchar(60) DEFAULT '' COMMENT '?????Q',
11
	CEOName varchar(60) DEFAULT '' NOT NULL COMMENT '??\?????',
12
	CEOPositionName varchar(60) DEFAULT '' COMMENT '??\???E??',
13
	ZipCode varchar(8) NOT NULL COMMENT '?X????',
14
	Address1 varchar(60) NOT NULL COMMENT '?Z???P',
15
	Address2 varchar(60) DEFAULT '' COMMENT '?Z??2',
16
	Address3 varchar(60) COMMENT '?Z??3',
17
	PhoneNumber varchar(13) DEFAULT '' NOT NULL COMMENT '?d?b???',
18
	FaxNumber varchar(13) DEFAULT '' COMMENT 'FAX???',
19
	ConstructionExpenses decimal(4,2) NOT NULL COMMENT '?H?????o??',
20
	OfficeExpenses decimal(4,2) NOT NULL COMMENT '???????o??',
21
	OperatingExpenses decimal(4,2) NOT NULL COMMENT '?c??o??',
22
	ConsumptionTax decimal(4,2) NOT NULL COMMENT '?????',
23
	CooperationRate decimal(4,2) NOT NULL COMMENT '???????',
24
	StatutoryWelfareRate decimal(4,2) NOT NULL COMMENT '?@???????',
25
	ExcelSavePath varchar(120) COMMENT 'Excel????p?X',
26
	BusinessPeriod smallint NOT NULL COMMENT '????c?????',
27
	ConstructionYear smallint NOT NULL COMMENT '????H???N?x',
28
	BusinessBeginningDate varchar(5) NOT NULL COMMENT '?c????????',
29
	ConstructionBeginningDate varchar(5) NOT NULL COMMENT '?H???N?x?????',
30
	ConstructionNoBase decimal(1) NOT NULL COMMENT '?H????????l',
31
	SloganString1 varchar(100) COMMENT '?W??1',
32
	SloganString2 varchar(100) COMMENT '?W??2',
33
	SloganString3 varchar(100) COMMENT '?W??3',
34
	EntryDate datetime NOT NULL COMMENT '?o?^???t',
35
	UpdateDate datetime NOT NULL COMMENT '?X?V???t',
36
	PRIMARY KEY (SystemCode)
37
) COMMENT = '????}?X?^';
38

  
39
Insert INTO SystemMaster
40
SELECT
41
	SystemCode,
42
	CompanyName1,
43
	CompanyName2,
44
	CEOName,
45
	CEOPositionName,
46
	ZipCode,
47
	Address1,
48
	Address2,
49
	Address3,
50
	PhoneNumber,
51
	FaxNumber,
52
	ConstructionExpenses,
53
	OfficeExpenses,
54
	OperatingExpenses,
55
	ConsumptionTax,
56
	CooperationRate,
57
	8.0,
58
	ExcelSavePath,
59
	BusinessPeriod,
60
	ConstructionYear,
61
	BusinessBeginningDate,
62
	ConstructionBeginningDate,
63
	ConstructionNoBase,
64
	SloganString1,
65
	SloganString2,
66
	SloganString3,
67
	EntryDate,
68
	UpdateDate
69
FROM SystemMaster_OLD
70
;
71
commit;
72

  

他の形式にエクスポート: Unified diff