怎样在oracle中插入一个单引号
在此多谢各位

解决方案 »

  1.   

    SQL> select '''' || 'aa' ||''''  from dual;結果:''''||'AA'||''''
    ----------------
    'aa'
      

  2.   

    create table table1
    (
      cc varchar2(5)
    )
     
     insert into table1(cc) values('''')
     select * from table1
    结果  '
      

  3.   

    SQL> 
    SQL> create table table1
      2  (
      3    cc varchar2(5)
      4  )
      5  /Table createdSQL>  insert into table1(cc) values('''');1 row insertedSQL> commit;Commit complete
    SQL> select * from table1;CC
    -----
    '
      

  4.   

    select '''' from dual ;