Oracle下特殊字元 &

來源:互聯網
上載者:User

Oracle下特殊字元 &

1.SQL SERVER下是支援插入的

update  ezoffice.menuset

set righturl='/defaultroot/InfoAction.do?type=all&channelType=0&userChannelName=資訊管理&userDefine=0&orderBy=date'

where menuname = '資訊管理';

2.同樣的語句在ORACLE下執行就編譯都通不過,因為在ORACLE中&是一個特殊的字串。

所以要寫成下句形式才能執行。

update  oa_menuset t

set t.righturl='/defaultroot/InfoAction.do?type=all'||'&'||'channelType=0'||'&'||'userChannelName=資訊管理'||'&'||'userDefine=0'||'&'||'orderBy=date'

where t.menuname = '資訊管理';

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.