avatar
ORA-1747 error 求助。# Database - 数据库
c*c
1
不知道为啥一个table的column给命名为 number而且是primary key。结果我没法选了
select * from activities where number = '123456'。结果得到ORA-1747错误。用“
number”也不行。得到ORA-00904错误
没法重命名number,所有applications都用,那样改动实在太大。
怎么写query,谢谢
avatar
w*r
2
"number"=12

【在 c***c 的大作中提到】
: 不知道为啥一个table的column给命名为 number而且是primary key。结果我没法选了
: select * from activities where number = '123456'。结果得到ORA-1747错误。用“
: number”也不行。得到ORA-00904错误
: 没法重命名number,所有applications都用,那样改动实在太大。
: 怎么写query,谢谢

avatar
c*c
3
google来的
http://www.dba-oracle.com/t_ora_01747_invalid_user_table_column_table_column_or_column_specification.htm
ORA-01747 appears in Oracle MetaLink documents as an issue that occurs when
reservations are off. Here is an example of the error stemming from Pick
Release log file:
oe-e-oesupl ORA-01747 invalid user.table.column, table.column or column
specification
oe-e-oesupl sql occured while trying to select picking lines from
picking
header.
To resolve ORA-01747 in this case,

【在 w*r 的大作中提到】
: "number"=12
avatar
w*r
4
BUG!

oracle.com/t_ora_01747_invalid_user_table_column_table_column_or_column_
specifi
cation.htm
when
column

【在 c***c 的大作中提到】
: google来的
: http://www.dba-oracle.com/t_ora_01747_invalid_user_table_column_table_column_or_column_specification.htm
: ORA-01747 appears in Oracle MetaLink documents as an issue that occurs when
: reservations are off. Here is an example of the error stemming from Pick
: Release log file:
: oe-e-oesupl ORA-01747 invalid user.table.column, table.column or column
: specification
: oe-e-oesupl sql occured while trying to select picking lines from
: picking
: header.

avatar
c*c
5
I figure it out
I should use
select * from table_name where "NUMBER" = '123456'。All upper case.
这是思维误区,总认为Oracle里没有case sensitive

【在 w*r 的大作中提到】
: BUG!
:
: oracle.com/t_ora_01747_invalid_user_table_column_table_column_or_column_
: specifi
: cation.htm
: when
: column

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。