update persons set reg_no=reg_no-9000000 where reg_no>0
update persons set spec_no=spec_no-9000000 where spec_no>0