'builtin_function_or_method' Object Has No Attribute 'execute' For Cursor.ececute(statement)
c = sqlite3.connect(history_db) cursor = c.cursor select_statement = 'SELECT urls.urls,urls.Visit_count FROM urls,Visits WHERE urls.id=visits.urls;' cursor.execute(select_stateme
Solution 1:
Connection.cursor
is a method, if you don't call it you get the method object itself, not the result of calling it. IOW, what you want is
cursor = c.cursor()
Post a Comment for "'builtin_function_or_method' Object Has No Attribute 'execute' For Cursor.ececute(statement)"