Why would I want to reference cursor.fetchall() if I can use cursor.execute directly?
Why would I want to reference cursor.fetchall() if I开发者_JAVA技巧 can use cursor.execute directly?a
Thanks
Because cursor.execute() doesn't actually return the data. Presumably you need that, so you need to run fetchall.
 
         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论