update table1 set num = substr(num,0,instr(num,'-'))||(substr(num,instr(num,'-')+1) +9)
2.原字段是数字 使用+连接
UPDATE table1SET num = num+10
3.截取 update tc_report t set xlsfile=substr(xlsfile,6) where xlsfile like '%uku\%'
posted on 2012-11-12 10:20 wyx 阅读(327) 评论(0) 编辑 收藏
Powered by: BlogJava Copyright © wyx