Oracle table problem
2004-07-04 12:44
344 查看
最近遇到一个奇怪的Oracle问题:
Oracle 数据库里面有一个表,在查询表的varchar2类型的column时总是查找不到正常的结果,查询其他类型的column可以返回正常结果。简化的例子如下
ID 列的类型为 number
NAME 列的类型为varchar2(10)
里面的数据如下:(1 ,'94'), (2,'94'), (3,'testname')
select * from TestTable where id=1 能返回正常结果
select * from TestTable where name='94' 返回 no rows select
select * from TestTable where name='testname' 能返回正常结果
奇怪的是select * from TestTable where name=94 能返回正常结果
而且和这个表varchar2列相关联的view也不能返回正常结果。
这个数据库的其他表查询正常。
实在无奈drop了这个table, 又重新create了,能正常工作,可是客户那里不允许我这样做。
而且我也想知道原因。
哪位朋友能给指点指点,谢谢!
Oracle 数据库里面有一个表,在查询表的varchar2类型的column时总是查找不到正常的结果,查询其他类型的column可以返回正常结果。简化的例子如下
ID 列的类型为 number
NAME 列的类型为varchar2(10)
里面的数据如下:(1 ,'94'), (2,'94'), (3,'testname')
select * from TestTable where id=1 能返回正常结果
select * from TestTable where name='94' 返回 no rows select
select * from TestTable where name='testname' 能返回正常结果
奇怪的是select * from TestTable where name=94 能返回正常结果
而且和这个表varchar2列相关联的view也不能返回正常结果。
这个数据库的其他表查询正常。
实在无奈drop了这个table, 又重新create了,能正常工作,可是客户那里不允许我这样做。
而且我也想知道原因。
哪位朋友能给指点指点,谢谢!
相关文章推荐
- 电子书下载:Oracle PL/SQL Recipes: A Problem-Solution Approach
- ORACLE:检查一个表(Table)是否存在?
- Oracle List Partition Table
- Oracle利用external table 查看trace文件
- oracle drop table and purge
- oracle flash table
- Export the table decribe from oracle data dictionary
- oracleI基础入门(8)--table--Delete
- oracleI基础入门(8)--table--MINUS
- oracle tablespace management
- PL/SQL表(oracle内存表)---table()函数用法
- Oracle Nested table、Record
- 在Oracle Table中限制只有一筆資料的情況
- 《Oracle Database Concepts 11g Release 2》读书笔记(2)-table
- Big Table and Small Table Join strategy in Oracle
- Appfuse,Running On Oracle时出现NoSuchTableException错误的解决
- ORACLE JET Basic Table Percent Dimensions
- Problem--266A--Codeforces--Stones on the Table
- Oracle Dump Charsetcode problem
- oracle 数据库表table