728x90
cursor.execute("INSERT INTO table VALUES (%s, %s, %s)", (var1, var2, var3))
pymysql은 무조건 %s로 변수 바인딩을 하나보다.
728x90
'Python' 카테고리의 다른 글
| python dictionary to string (0) | 2021.01.25 |
|---|---|
| python upbit return 딕셔너리 (0) | 2021.01.25 |
| pymysql datetime 현재시간 (0) | 2021.01.25 |
| 'Connection' object has no attribute 'cursors' (0) | 2021.01.25 |
| df index to column (0) | 2021.01.25 |