質問編集履歴

1

修正

2020/09/04 01:17

投稿

Gunjirk
Gunjirk

スコア23

test CHANGED
File without changes
test CHANGED
@@ -4,87 +4,17 @@
4
4
 
5
5
 
6
6
 
7
- ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'KYOTEN_NAME_KNJ VARCHAR(60)
7
+ ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'KYOTEN_NAME_KNJ VARCHAR(60)' at line 1
8
-
9
- KYOTEN_RNM_KNJ VARCHAR(30)
10
-
11
- KYOETN_ZIP CHAR(7) NOT NU' at line 3
12
8
 
13
9
 
14
10
 
15
11
  ```MySQL
16
12
 
17
- mysql> create table DM_KYOTEN(
13
+ mysql> create table KYOTEN(
18
14
 
19
15
  -> KYOTEN_CD CHAR(3) NOT NULL
20
16
 
21
17
  -> KYOTEN_NAME_KNJ VARCHAR(60)
22
-
23
- -> KYOTEN_RNM_KNJ VARCHAR(30)
24
-
25
- -> KYOETN_ZIP CHAR(7) NOT NULL
26
-
27
- -> KYOTEN1_ADD VARCHAR(150)
28
-
29
- -> KYOTEN2_ADD VARCHAR(150)
30
-
31
- -> KYOTEN3_ADD VARCHAR(150)
32
-
33
- -> KYOTEN_TEL VARCHAR(15) NOT NULL
34
-
35
- -> KYOTEN_FAX VARCHAR(15)
36
-
37
- -> KYOTEN_JR_TEL VARCHAR(15)
38
-
39
- -> HOJIN_KEIKYAKU_NO CHAR(8) NOT NULL
40
-
41
- -> KOFURI_NO CHAR(2) NOT NULL
42
-
43
- -> ITAKU1_NAME_KNJ VARCHAR(24)
44
-
45
- -> ITAKU2_NAME_KNJ VARCHAR(96)
46
-
47
- -> KYOTEN_SHUKEI_CD CHAR(3) NOT NULL
48
-
49
- -> KYOTENCYO_USER_ID VARCHAR(5)
50
-
51
- -> KYOTEN_JUNJO_CD DECIMAL(3,0) NOT NULL
52
-
53
- -> NOKINAKIWAKU_YM CHAR(6) NOT NULL
54
-
55
- -> NOKINAKIWAKU_PROC_DT DATETIME() NOT NULL
56
-
57
- -> GETSUJI_KESSAN_YM CHAR(6) NOT NULL
58
-
59
- -> GETSUJI_KESSAN_PROC_DT DATETIME() NOT NULL
60
-
61
- -> GETSUJI_KAIKEI_YM CHAR(6) NOT NULL
62
-
63
- -> GETSUJI_KAIKEI_PROC_DT DATETIME() NOT NULL
64
-
65
- -> SIME_DATE CHAR(8) NOT NULL
66
-
67
- -> KISHU_KAISHI_DATE CHAR(8) NOT NULL
68
-
69
- -> KOKOKUNOKIN_AKI_PROC_STATUS CHAR(2) default '00' NOT NULL
70
-
71
- -> GETSUJI_KESSAN_PROC_STATUS CHAR(1) default '0' NOT NULL
72
-
73
- -> GETSUJI_KAIKEI_PROC_STATUS CHAR(1) default '0' NOT NULL
74
-
75
- -> ENABLE_FLG CHAR(1) default '1' NOT NULL
76
-
77
- -> REG_USER_ID VARCHAR(5) NOT NULL
78
-
79
- -> REG_PGM_ID CHAR(9) NOT NULL
80
-
81
- -> REG_DT DATETIME() NOT NULL
82
-
83
- -> UPD_USER_ID VARCHAR(5) NOT NULL
84
-
85
- -> UPD_PGM_ID CHAR(9) NOT NULL
86
-
87
- -> UPD_DT DATETIME() NOT NULL
88
18
 
89
19
  -> );
90
20