作者在 2014-04-08 23:10:42 发布以下内容
http://bbs.bccn.net/thread-429128-1-1.html
SELECT kh,zf,(SELECT count(*)+1 FROM 成绩表 WHERE a.zf<zf) as jmc FROM 成绩表 as a into curs lsb
scan
upda 表 set jmc=lsb.jmc where allt(kh)=allt(lsb.kh)
ends
scan
upda 表 set jmc=lsb.jmc where allt(kh)=allt(lsb.kh)
ends