Oracle Database case study-failed to execute Oracle script or exception-string parameters in SQL commands use double quotation marks, leading to database table information update failure

Source: Internet
Author: User

1.1 symptom description when an SQL command containing double quotation marks is executed to update the data table information, the system displays the following error message:
For example:
SQL> update group_table set grouppswd = "adbaadadf" where groupname = 'sms ';

ORA-00904: "adbaadadf": invalid identifier
1.2 possible cause: Double quotation marks are used for string parameters in SQL commands. single quotation marks are used. 1.3 Procedure OracleThe machine on which the user logs on to the database. To SysdbaThe user connects to the database.

% Sqlplus/as sysdba

Change the double quotation marks in the original SQL command to single quotation marks, and then execute the modified command to update the data table information.

SQL> update group_table set grouppswd = 'adadadw' where groupname = 'ms ';

Update successful. The system displays the following information:

1 row updated.

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.