當你的T-SQL 指令,需要用到WHILE 時,意即會使用到迴圈,也就是程 .... while not rs.eof() rs.MoveNext loop. 只是我們將這段,搬到SQL Server 上撰寫罷了。
nhis.nhri.org.tw