일단, Query를 실행하는 방법은 크게 두 가지를 쓸 수 있겠다. runQuery()를 사용하는 방법과, runInteraction()을 사용하는 방법이다. 주어진 table에서 10개의 row를 가져오고자 한다고 했을때, 1) runQuery() 사용하기 def getCount(): return dbpool.runQuery("select * from test") def printResult(l): if l: result = l[0][0] print l[0][0], " records" else: print "no rows fetched" dbpool = adbapi.ConnectionPool('MySQLdb', db='abcd', user='abcd', passwd='abcd') getCount().a..