游标

 

 DECLARE Sub_CURSOU_MS CURSOR FOR
    SELECT FInkqty, FPrjsht, FMatno FROM #subworktimeink
    OPEN Sub_CURSOU_MS;
    FETCH NEXT FROM Sub_CURSOU_MS
    INTO @finkqty, @prjsht, @fmatno
    WHILE(@@FETCH_STATUS=0)BEGIN 
    END

   FETCH NEXT FROM Sub_CURSOU_MS
    INTO @finkqty, @prjsht, @fmatno
    END


CLOSE Sub_CURSOU_MS;
DEALLOCATE Sub_CURSOU_MS;

 

posted on 2021-03-12 16:54  RookieBoy666  阅读(58)  评论(0编辑  收藏  举报