Last active
December 14, 2015 07:58
-
-
Save hasayvaz/5053944 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import MySQLdb | |
db = MySQLdb.Connection(host="localhost", user="abcd", passwd="123", db="telrehberi") | |
cur = db.cursor() | |
cur.execute("SELECT * FROM rehber") | |
for row in cur.fetchall() : | |
print row[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment