简单,替换' 如图,查询出来的手机 字段前面有' 如何替换为正常的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select right(col,11) from tb--取右边11位 select replace(tel,'''','') from tb update tablename set phone=replace(phone,'''','') update tablename set phone=replace(phone,'''','') where charindex('''',phone)>0 declare @col varchar(20) ='''18858176039';select @colselect SUBSTRING(@col,2,LEN(@col)-1) select replace(ColName,'''','') as ColName from TbName select right(col,11) from tb--取右边11位select stuff(col,1,1,'') from tb 你这应该是导出Excel表的问题吧,换种导表方法就行了啊 SQL codereplace(col,''','') 安装SQL Server 2005遇到的问题 一个查询排列问题 问个类似触发器功能的问题 sql棘手问题。组合查询条件 如何在表中插入合计行 这个触发器怎么写? happydreamer(黑DD) ,pengdali(大力) ( ) 請進 怎样用语句把已有表的int 改成 int identity(1,1)? 来自三张表的,这个查询怎么写?谁帮我一下,我在做一个复杂的日报表 请教SQL Server 启动后又停止 菜鸟求教,绝对的菜鸟 跪求解答,高手请进,非常着急
select right(col,11) from tb--取右边11位
update tablename
set phone=replace(phone,'''','')
update tablename set phone=replace(phone,'''','')
where charindex('''',phone)>0
select @col
select SUBSTRING(@col,2,LEN(@col)-1)
select stuff(col,1,1,'') from tb
SQL code
replace(col,''','')