質問編集履歴

1

文法の修正

2018/04/25 03:01

投稿

syu-yu
syu-yu

スコア24

test CHANGED
File without changes
test CHANGED
@@ -24,9 +24,13 @@
24
24
 
25
25
  test_point = get_point[i]
26
26
 
27
- sql = 'insert into personal (name,test_point) values (%s, %s)'
27
+ with connection.cursor() as cursor:
28
28
 
29
+ connection = dbEngine.connection
30
+
31
+ sql = 'insert into personal (name,test_point) values (%s, %s)'
32
+
29
- cursor.execute(sql, (name, test_point))
33
+ cursor.execute(sql, (name, test_point))
30
34
 
31
35
  ```
32
36