DECLARE BLBL_CURSOR CURSOR FOR
SELECT ref.RefBillID FROM Table2 ref
WHERE ref.BillID=@Parm_BillID

OPEN BLBL_CURSOR
FETCH NEXT FROM BLBL_CURSOR INTO @sRefBillID
WHILE @@FETCH_STATUS = 0
BEGIN

--exec dbo.SP_Recall @sRefBillID, @rtnCode output, @rtnText output

FETCH NEXT FROM BLBL_CURSOR INTO @sRefBillID
END
CLOSE BLBL_CURSOR
DEALLOCATE BLBL_CURSOR

相关文章:

  • 2022-02-07
  • 2021-12-24
  • 2022-12-23
  • 2021-09-26
  • 2022-12-23
  • 2021-06-19
  • 2021-04-05
  • 2021-10-08
猜你喜欢
  • 2021-06-08
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案