1
を持っていない私は、適切manner.MyコードのMySQLdb fetcall、はAttributeError:「int型オブジェクトが属性「fetchAllの」
import MySQLdb
mydb = MySQLdb.connect(host = 'localhost',user = 'milenko',passwd = 'nuklear',db = 'mm')
cur = mydb.cursor()
command = cur.execute('SELECT * FROM jul')
results = command.fetchall()
print (results)
でMySQLのDBに私のcsvファイルをインポートするために管理している。しかし、私が得たかどうかを確認したいですこの
File "b12.py", line 6, in <module>
results = command.fetchall()
AttributeError: 'int' object has no attribute 'fetchall'
私は、人々がその数のオブジェクトがfetcall object.IはアルバートLukaszewskiからMySQL用のPythonから、このコードをコピーしていないと主張以前のSOの記事を見てきました。 DBコンテンツを一度にプルダウンするには?