📜  sql server for 循环 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:33.254000             🧑  作者: Mango

代码示例1
DECLARE @cnt INT = 0;

WHILE @cnt < cnt_total
BEGIN
   {...statements...}
   SET @cnt = @cnt + 1;
END;