質問編集履歴
1
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
**new_id = cursor.execute("SELECT max(id) + 1 from tablename")**
|
|
18
18
|
|
|
19
|
-
cursor.execute("INSERT INTO
|
|
19
|
+
cursor.execute("INSERT INTO tablename(id,opinion) VALUES(%s, %s)",(new_id, opinion))
|
|
20
20
|
db.commit()
|
|
21
21
|
cursor.close()
|
|
22
22
|
db.close()
|