Skip to content

Instantly share code, notes, and snippets.

@hasayvaz
Last active December 14, 2015 07:58
Show Gist options
  • Save hasayvaz/5053944 to your computer and use it in GitHub Desktop.
Save hasayvaz/5053944 to your computer and use it in GitHub Desktop.
#!/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