---
title: "循环里使用数据库操作"
author: "qdexception"
date: "2010-11-18T07:56:07Z"
tags: []
categories: ["编程语言"]
slug: "untitled"
draft: false
lastmod: "2010-11-18T07:56:07Z"
id: 814568
url: "https://qdexception.iteye.com/blog/814568"
---

RT,应尽量避免。

如有需要，查询后存入集合类，遍历集合类做完逻辑判断，进行批量update操作以及后续查询。