Oracle table problem

Source: Internet
Author: User

Recently encountered a strange Oracle problem:
There is a table in the Oracle database. When querying the column of the varchar2 type in the table, normal results are always not found. If you query other types of columns, normal results can be returned. The simplified example is as follows:
The ID column is of the number type.
The name column is of the varchar2 (10) type)
The data in the table is as follows: (1, '94 '), (2, '94'), (3, 'testname ')

Select * From testtable where id = 1 can return normal results
Select * From testtable where name = '94 'return No rows select
Select * From testtable where name = 'testname' can return normal results
The strange thing is that select * From testtable where name = 94 can return normal results.

In addition, the view associated with this table's varchar2 Column cannot return normal results.
Other tables in this database are queried normally.

I can't help but drop this table and create it again. It can work normally, but the customer does not allow me to do this.
And I want to know why.

Which of you can give me some advice? Thank you!

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.