摘要:
1.--循环遍历每一个版本,如果没有这个质量要求则将这个质量要求插入进去declare CUR_pbi cursor forSELECT pbi,pbinameFROM MANAGER_VERSION_CONFIGopen CUR_pbifetch next from CUR_pbi into @pbi,@pbiname --将游标向下移1行,获取的数据放入之前定义的变量@versionpbi中while @@fetch_status=0 ---循环判断游标还在读取beginSELECT @count = count(*) FROM dbo.MANAGER_VERSION_lINK WHERE 阅读全文