SQL Server 中 for 循环的语法

2021-12-08 00:00:00 loops sql syntax tsql sql-server

TSQL 中 for 循环的语法是什么?

What is the syntax of a for loop in TSQL?

推荐答案

T-SQL 没有 FOR 循环,它有一个 WHILE 循环
WHILE (Transact-SQL)

T-SQL doesn't have a FOR loop, it has a WHILE loop
WHILE (Transact-SQL)

WHILE Boolean_expression
BEGIN

END

相关文章