Oracle SQL escape character (for a '&')

后端 未结 8 1882
囚心锁ツ
囚心锁ツ 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:45

    The real answer is you need to set the escape character to '\': SET ESCAPE ON

    The problem may have occurred either because escaping was disabled, or the escape character was set to something other than '\'. The above statement will enable escaping and set it to '\'.


    None of the other answers previously posted actually answer the original question. They all work around the problem but don't resolve it.

提交回复
热议问题