Guest User

Untitled

a guest
Jan 31st, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. connection = pymysql.connect(host='localhost',
  2. user='user',
  3. password='password',
  4. db='literatur',
  5. charset='utf8mb4',
  6. cursorclass=pymysql.cursors.DictCursor)
  7. with connection.cursor() as cursor:
  8. sql = "INSERT into tf_data (tf_data_id, abstract) values (4, 'TEST')"
  9. cursor.execute(sql)
  10. connection.commit
Add Comment
Please, Sign In to add comment