Oracle SQL escape character (for a '&')

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

    the & is the default value for DEFINE, which allows you to use substitution variables. I like to turn it off using

    SET DEFINE OFF

    then you won't have to worry about escaping or CHR(38).

提交回复
热议问题