27,581
社区成员
发帖
与我相关
我的任务
分享
--其實。。。弱弱忍不住說,sql2000也好處理啊
--text支持substring,patindex的
Create table T(col ntext)
insert into T select N'P梁果然是天才,AA-->我確實想歪了'
Update T
set col=case when patindex('%AA%',col)>0
then substring(col,1,patindex('%AA%',col)-1)
else col end
Drop table T
