急!!!求一个批量修改ms sql语句

来源:百度知道 编辑:UC知道 时间:2024/05/21 16:23:30
我有一表‘10000001’,表的内容都是1000001后面跟8位数字,我想求一个语句,能批量删除表内前8位就是删除10000001,只留后面的内容,怎么写?
急啊!!!!

sql="select * from [表名] order by id desc"
rs.open sql,conn,1,3
if not rs.eof then
while not rs.eof
rs("字段")=right(rs("字段"),8)
rs.opdate
rs.movenext
wend
response.write("修改成功")
else
response.write("无数据")
end if
rs.close