self.cr.execute(sql, ) # res = self.cr.fetchmany(1000) while True: res = self.cr.fetchmany(1000) pri … Continue reading python 数据库游标,fetchmany(int),边取数据边处理,防止数量量太大撑爆内存
self.cr.execute(sql, ) # res = self.cr.fetchmany(1000) while True: res = self.cr.fetchmany(1000) pri … Continue reading python 数据库游标,fetchmany(int),边取数据边处理,防止数量量太大撑爆内存