这是一篇描述原因的文章:
@L_301_0@
如果你真的需要循环:
http://www.techrepublic.com/blog/datacenter/comparing-cursor-vs-while-loop-performance-in-sql-server-2008/1741