What is an Oracle ORA-01722 error?

Source: Internet
Author: User
Run the same statement selectcode_idcode on both databases, locate -- here the error with quotation marks is okorderbycode_id a normal, but the other reports an error ORA-01722, the same field type, the same database version, after

Run the select code_id code Statement on both databases, code_value name from code_value_t t where code_id like '0 _ 'and class_code = 22 -- if an error is added here, OK order by code_id is a normal one, but the other reports an error ORA-01722, the same field type, same database version, later

Execute the same statement on two databases.

Select code_id code, code_value name

From code_value_t t

Where code_id like '0 _'

And class_code = 22 <-- if an error occurs, enclose the quotation mark ("OK ").

Order by code_id

A normal, the other but reported an error ORA-01722, the same field type, the same database version, and then found in the where type conversion, if added with single quotes, do not report an error, find the data in the database that reported the error and find that one of the data items is of the string type. An error occurred while converting oracle to numeric comparison. Therefore, delete the test data OK.

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.