sql for循環declare   @a   int   
sql for循環  
set   @a=0   
sql for循環  
while   @a<=10   
sql for循環  
begin   
sql for循環                
print   @a   
sql for循環                
set   @a=@a+1   
sql for循環  
end

sql沒有for循環,但是while也是一樣可以實現該功能的

相关文章:

  • 2022-01-16
  • 2021-08-01
猜你喜欢
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案