dobetterthatnthink的方法不错,
你也可以不用存储过程,你不是想获得当前记录的质量值吗?
先建一个对照表tab1(如上dobetterthatnthink所示),
然后依照tab1更新你的数据表
sql:
while not yourTab.eof
begin
while not tab1.eof
begin
if yourTab.含量>=tab1.hl and 消光<=tab1.h2 then
update yourTabname set 质量=tab1.degrade where id=yourTab.id
tab1.next
end;
yourtab1.next
end;