读书人

更新quot;65,67,68,69,quot;这品种型的Id字段

发布时间: 2012-07-29 15:26:14 作者: rapoo

更新",65,67,68,69,"这种类型的Id字段
----更新去掉hw_dmt_zdk_test表中 stuname 字段中的‘67’
update hw_dmt_zdk_test t
set t.stuname=(case when instr(t.stuname,'67',1,1)>0 then
replace(replace(t.stuname,'67',''),',,',',')
else
t.stuname
end)

读书人网 >其他数据库

热点推荐