teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

コードの更新

2018/05/08 16:21

投稿

teityann1225
teityann1225

スコア158

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

テーブルスキーマを追記しました。

2018/05/08 16:21

投稿

teityann1225
teityann1225

スコア158

title CHANGED
File without changes
body CHANGED
@@ -6,6 +6,7 @@
6
6
  0
7
7
  1 010bf3ea5
8
8
  ```
9
+ ![イメージ説明](d9759f4db2cddc3399af0ccd297f021e.png)
9
10
  #コード
10
11
  ```Python
11
12
  import mysql.connector