如何成批替换某个字段的值/在线等待

haodez 2003-05-20 10:05:01
select news_title from tbl_news where news_title like '%/?%'
请问如何用T-sql成批替换掉news_title里的“?”
在线等待中。。。
...全文
85 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
haodez 2003-05-20
  • 打赏
  • 举报
回复
多谢各位大虾!马上给分
psxfghost 2003-05-20
  • 打赏
  • 举报
回复
如果要将?去掉,就如下:
update tbl_news set news_title=replace(news_title,'?','')
sm8848 2003-05-20
  • 打赏
  • 举报
回复
replace(news_title ,'?',' ')

同意
愉快的登山者 2003-05-20
  • 打赏
  • 举报
回复
update tabl_news set news_title = replace(news_title, '?', '')
or
select replace(news_title, '?', '') from tbl_news where news_title like '%/?%'
happydreamer 2003-05-20
  • 打赏
  • 举报
回复
replace(news_title ,'?',' ')
psxfghost 2003-05-20
  • 打赏
  • 举报
回复
update tbl_news set news_title=replace(news_title,'?','!')
将?替换成!

34,838

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧