首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

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

2012-07-29 
更新,65,67,68,69,这种类型的Id字段----更新去掉hw_dmt_zdk_test表中 stuname 字段中的‘67’update hw_dm

更新",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)

热点排行