Oracle Insert & Character insertion issues

Source: Internet
Author: User

For example, execute a statement:

Insert  intonsrxt_sp (sp_id, Sp_title, Sp_desc, Sp_url, Sp_type, Sp_sub_type , Add_time, CZRY_DM)Values(227,'"Reminder" New income tax returns fill in Tips',NULL,'http://hdsw.wangzhanbaomu.com/index.php?g=wap&m=index&a=content&id=561&classid=79& Token=tnxjwh1411757286&wecha_id=ocyfxjjvqn69ytfpvkt2eui_y6ja','2',' ', To_date ('21-07-2015 11:07:58','dd-mm-yyyy Hh24:mi:ss'),NULL);

The Sp_url field corresponds to a hyperlink with parameters that Oracle handles & as a custom variable during execution.

Workaround:

(1) Online Some people say by setting set define OFF, to solve, but I still do not;

(2) Processing & using the Oracle character processing function Chr (this method succeeds): Chr (38) represents the & character

Insert  intonsrxt_sp (sp_id, Sp_title, Sp_desc, Sp_url, Sp_type, Sp_sub_type , Add_time, CZRY_DM)Values(227,'"Reminder" New income tax returns fill in Tips',NULL,'Http://hdsw.wangzhanbaomu.com/index.php?g=Wap'||Chr -)||'M=index'||Chr -)||'a=content'||Chr -)||'id=561'||Chr -)||'classid=79'||Chr -)||'token=tnxjwh1411757286'||Chr -)||'Wecha_id=ocyfxjjvqn69ytfpvkt2eui_y6ja','2',' ', To_date ('21-07-2015 11:07:58','dd-mm-yyyy Hh24:mi:ss'),NULL);

Oracle Insert & Character insertion issues

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.