表 A             字段 TPV
 TPV 的值        firewall想改成TPV 的值=abcfirewall 也是就是 TPV='abc'+TPV
求update 语句!!

解决方案 »

  1.   

    你自己写的就是对了的.update A 
       set TPV = 'abc'+ TPV 
      

  2.   

    update A 
      set TPV = 'abc'||TPV 
      

  3.   

    update A 
    set TPV = 'abc'+ TPV 
    where TPV='firewall'
      

  4.   

    update A 
    set TPV = 'abc'||TPV 
    where TPV='firewall'
      

  5.   

    sql server: 
    update A 
    set TPV = 'abc'+ TPV 
    where TPV='firewall'oracle:
    update A 
    set TPV = 'abc'||TPV 
    where TPV='firewall';
      

  6.   

    哈哈,字符串连接怎么能用+呢,我就奇怪,楼上二位高手都说+就行,搞的我还特意试下.
    select 'a'+'c' from dual;--错误写法
    select 'a'||'c' from dual;--正确写法
    --运行结果
    ac
      

  7.   

    "+" 是sql server拼串的用法,不小心容易搞混了,呵呵