如图,查询出来的手机 字段前面有' 如何替换为正常的

解决方案 »

  1.   


    select right(col,11) from tb--取右边11位
      

  2.   

    select replace(tel,'''','') from tb
      

  3.   


    update tablename 
    set phone=replace(phone,'''','')
      

  4.   


    update tablename set phone=replace(phone,'''','') 
    where charindex('''',phone)>0
      

  5.   

    declare @col varchar(20) ='''18858176039';
    select @col
    select SUBSTRING(@col,2,LEN(@col)-1)
      

  6.   

    select replace(ColName,'''','') as ColName from TbName
      

  7.   

    select right(col,11) from tb--取右边11位
    select  stuff(col,1,1,'') from tb
      

  8.   

    你这应该是导出Excel表的问题吧,换种导表方法就行了啊
      

  9.   


    SQL code
    replace(col,''','')