Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- connection=pymysql.connect(host='localhost',user='root',password='123456',database='sakila')
- cursor=connection.cursor()
- insert_query= INSERT INTO 'film_text'(film_id, title, description) VALUES ('1001','ZZZ ZORRO','Zorro must Fight a Womanizer in Berlin');
- cursor.execute(insert_query)
- connection.commit()
Add Comment
Please, Sign In to add comment