update tables set ="4" where ...
[/Quote]
楼主啊。。。你描述问题描述的真太那个了,看不懂,你一开始说1,2,3,4,5,6..............。现在改成 1,2,3,4,;1,2,3,4,;现在又变成这样。。。,而且还描述的不清楚,我按我的理解给你写了条语句,你看看是不是你想要的
update 表名
set 字段名 = case when 条件1 then '1' when 条件2 then '2' when 条件3 then '3' when 条件4 then '4' end;
update tables set ='1(是字符串的)' where 条件。(i)
i := i + 1 ;
update tables set ='2' where 条件(i)
i := i + 1 ;
update tables set ='3' where 条件。。。(i)
i := i + 1 ;
因为循环里面有这样的四条更新语句。 所以 条件无法确定。。。用的是 while