質問編集履歴
2
コードの更新
title
CHANGED
File without changes
|
body
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
if cur.rowcount < 1:
|
25
25
|
try:
|
26
|
-
cur.execute('insert into Region (GID) values ("aaa")')
|
26
|
+
cur.execute('insert into Region (GID, Count, Buy) values ("aaa", 0, 0)')
|
27
27
|
#cur.execute(sql)
|
28
28
|
print(group_id)
|
29
29
|
conn.commit()
|
@@ -38,5 +38,4 @@
|
|
38
38
|
|
39
39
|
cur.close
|
40
40
|
conn.close
|
41
|
-
|
42
41
|
```
|
1
テーブルスキーマを追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
0
|
7
7
|
1 010bf3ea5
|
8
8
|
```
|
9
|
+

|
9
10
|
#コード
|
10
11
|
```Python
|
11
12
|
import mysql.connector
|