a guest Apr 27th, 2016 133 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import mysql.connector
- conn = mysql.connector.connect(user='root', password='root',
- cursor = conn.cursor()
- url = 'http://interia.pl'
- data = ("INSERT INTO domain "
- "(url) "
- "VALUES ('moje dane')")
- cursor.execute("SELECT * FROM domain")
- for url in cursor:
- print("Domena: ", url)
RAW Paste Data