如果bianhao不重复:update zl 
set xuhao=(select count(*) from zl b where b.bianhao<=a.bianhao)
from zl a如果bianhao重复,就要用临时表来倒一下,才能保证正确。