INSERT statement cannot insert &, how to insert ampersand (escaping) when oracle insert

Just replace it with chr(38):

insert into table values( 'http://localhost:8080/index.action?username=138&type=1 ');

insert into table values( 'http://localhost:8080/index.action?username=138 '||chr(38)|| 'type=1 ');

Guess you like

Origin blog.csdn.net/weixin_39597541/article/details/103542299