Oracle SQL escape character (for a '&')

后端 未结 8 1831
囚心锁ツ
囚心锁ツ 2020-11-28 09:58

While attempting to execute SQL insert statements using Oracle SQL Developer I keep generating an \"Enter substitution value\" prompt:

insert into agregadore         


        
相关标签:
8条回答
  • 2020-11-28 10:58

    select 'one'||'&'||'two' from dual

    0 讨论(0)
  • 2020-11-28 11:03

    Set the define character to something other than &

    SET DEFINE ~
    create table blah (x varchar(20));
    insert into blah (x) values ('blah&amp');
    select * from blah;
    
    X                    
    -------------------- 
    blah&amp 
    
    
    0 讨论(0)
提交回复
热议问题