DECLARE @tempFriend varchar(5000)
    
DECLARE rs CURSOR  LOCAL SCROLL FOR
    
select Friend  from Friend where Username = @Username
    
OPEN rs 
    
FETCH NEXT FROM rs INTO @tempFriend  --循环
     WHILE @@FETCH_STATUS = 0
     
BEGIN
        
SET @Friend = @Friend + @tempFriend
     
FETCH NEXT FROM rs INTO @tempFriend
     
END
     
CLOSE  rs
     
deallocate   rs

相关文章:

  • 2021-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2022-01-02
  • 2021-12-23
相关资源
相似解决方案