C # When oracle adds data to the table, the following error occurs: Invalid character. The reason is that a semicolon is added after the SQL statement.

Source: Internet
Author: User

C #CodeTo add data to the Oracle database table. The SQL statement is checked in pl SQL and can be added successfully.

But when the code is executed, an error is reported. Invalid character of invalid character.

Check the code and compare the SQL string. Finally, I searched for the problem. Some may be that the last SQL statement may contain a semicolon.

Remove the semicolon. The execution is successful.

Write SQL statements in pl SQL and add a semicolon at the end. However, it is considered invalid in the code.

 

 

There are other causes for invalid character error. This article only writes out the situations I encountered.

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.