遇到一个超简单的问题,但是没搞懂 update table set url= 'aa.do?method=bb&id=' where id = 1就是不能顺利执行,会弹出一个框来确认id,为什么呢~
怎么写才能行呢?

解决方案 »

  1.   

    update table set url= 'aa.do?method=bb&id=' where id = '1'
      

  2.   

    --&符号是sqlplus的宏替换符号,可这样
    update table set url= 'aa.do?method=bb'||chr(38)||'id=' where id = 1;
      

  3.   

    顶 2 楼的,
    --&符号是sqlplus的宏替换符号,可这样
    update table set url= 'aa.do?method=bb'||chr(38)||'id=' where id = 1;
      

  4.   

    如果是sqlplus可以先执行
    set define off
    再插入
    如果是pl/sqldev
    使用两个&符号转义
    update table set url= 'aa.do?method=bb&&id=' where id = '1'