如何把加号存进oracle???
比如想存一个字符串 a+b+c  存进去就变成abc了。
怎么解决?oracle

解决方案 »

  1.   

    如果仅仅这样,没那么复杂吧,'a+b+c'
      

  2.   


    select 'a+b+c' from dual;
    select 'a' || '+' || 'b' || '+' || 'c' from dual;
      

  3.   

    SQL> create table test(tt varchar2(10));表已创建。SQL> insert into test select 'a+b+c' from dual;已创建 1 行。SQL> select * from test;TT
    ----------
    a+b+c
      

  4.   

    select 'a'||'+'||'b'||'+'||'c'  from dual
      

  5.   

    存一个字符串 a+b+c ,存进去就变成abc了??这个可能么。。
      

  6.   

    是这样?
    SQL> 
    SQL> create table test(a varchar2(40));
     
    Table created
    SQL> insert into test values(replace('a+b+c','+'));
     
    1 row inserted
    SQL> select * from test;
     
    A
    ----------------------------------------
    abc
     
    SQL>