回答編集履歴

2

連番を付与

2019/02/17 14:44

投稿

firedfly
firedfly

スコア1131

test CHANGED
@@ -8,9 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- 1. `aac_date ` → `acc_date `
11
+ 1`aac_date ` → `acc_date `
12
-
13
-
14
12
 
15
13
  ```Python
16
14
 
@@ -36,7 +34,7 @@
36
34
 
37
35
 
38
36
 
39
- 1. item_codeを追加
37
+ 2.item_codeを追加
40
38
 
41
39
 
42
40
 
@@ -56,7 +54,7 @@
56
54
 
57
55
 
58
56
 
59
- 1. `[{}]` → `{}`
57
+ 3.`[{}]` → `{}`
60
58
 
61
59
 
62
60
 

1

item_codeが数値だったので微修正

2019/02/17 14:44

投稿

firedfly
firedfly

スコア1131

test CHANGED
@@ -56,7 +56,7 @@
56
56
 
57
57
 
58
58
 
59
- 1. `[{}]` → `'{}'`
59
+ 1. `[{}]` → `{}`
60
60
 
61
61
 
62
62
 
@@ -66,7 +66,7 @@
66
66
 
67
67
  INSERT INTO acc_data(acc_date,item_code,amount)
68
68
 
69
- VALUES('{}','{}',{});
69
+ VALUES('{}',{},{});
70
70
 
71
71
  """.format(acc_date, item_code, amount))
72
72
 
@@ -186,7 +186,7 @@
186
186
 
187
187
  INSERT INTO acc_data(acc_date,item_code,amount)
188
188
 
189
- VALUES('{}','{}',{});
189
+ VALUES('{}',{},{});
190
190
 
191
191
  """.format(acc_date,item_code,amount))
192
192