可以实现。
也可以这样:
update 
update tablename
set a=ltrim(a,'扣')
where instrb(a,'扣')=1

解决方案 »

  1.   

    SQL> create table test(id integer,content varchar2(20));Table createdSQL> insert into test(id,content)values(1,'扣fdfdfd');1 row insertedSQL> insert into test(id,content)values(2,'dfdfdd');1 row insertedSQL> update test
      2  set
      3  content=ltrim(content,'扣')
      4  where instrb(content,'扣')=1;1 row updatedSQL> select * from test;                                     ID CONTENT
    --------------------------------------- --------------------
                                          1 fdfdfd
                                          2 dfdfddSQL>
      

  2.   

    SQL> select ltrim('mississippi','mis') from dual;LTRIM('MISSISSIPPI','MIS')
    --------------------------
    ppiSQL> select replace('mississippi','mis','') from dual;REPLACE('MISSISSIPPI','MIS',''
    ------------------------------
    sissippi以于字符串ltrim()与replace()是有区别,ltrim(a,b)出现在a的b所有辽符都删除,replace(a,b,c)是以c代替b出现在a字符串,它是整串,不以字节为单位.
      

  3.   

    update tablename set a=substr(a,3,length(a)-2) where a like '扣%'
      

  4.   

    update tablename set a=substr(a,2,length(a)-1) where a like '扣%'