现在的位置: 首页 > 综合 > 正文

表变量 循环表 存储过程

2012年12月26日 ⁄ 综合 ⁄ 共 267字 ⁄ 字号 评论关闭

  declare @count int
    declare @OrderID nvarchar(50)
 declare  @VariationOrderTable table(IndexID int identity(1,1),ID nvarchar(50))
 declare @index int
 insert into @VariationOrderTable

 
 set @index=1;
DECLARE @subject NVARCHAR(360);  
 while(@index<=@count)
 begin

  set @index=@index+1;
 end

抱歉!评论已关闭.