Created
February 25, 2013 15:34
-
-
Save tiomoreno/5030642 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
import config.mysql as dbconfig | |
from MysqlFactory import MysqlFactory | |
connection = MysqlFactory().getConnection(dbconfig.params) | |
cursor = connection.cursor() | |
query = """ | |
SELECT | |
* | |
FROM | |
log | |
WHERE | |
log.id_course is null | |
""" | |
cursor.execute(query) | |
result_set = cursor.fetchall(); | |
print cursor.rowcount | |
connection.close(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment