Welcome 微信登录

首页 / 数据库 / MySQL / ORA-00904/ORA-00942和Oracle 大小写区分

Oracle数据库中各种对象(包括表,列,索引等)默认不区分大小写,在数据字典中一律用大写。假如用户在建表(包括外部表)时,将列名/表名用双引号括起,这些都成为大小写区分的数据库对象。这时select 时需要严格按照建表时的大小写才能成功,否则返回ORA-000904或ORA-00942错误。某些软件可以帮助用户自动产生Create table语句,这时需要将双引号去掉。否则会产生上述错误。create table "t" ( "a" int );
table "t" created.select A from T;
ORA-00942: table or view does not exist
00942. 00000 -  "table or view does not exist"
*Cause:   
*Action:
Error at Line: 16 Column: 15
select A from "t";
ORA-00904: "A": invalid identifier
00904. 00000 -  "%s: invalid identifier"
*Cause:   
*Action:
Error at Line: 16 Column: 8相关阅读:SPFILE 错误导致数据库无法启动(ORA-01565) http://www.linuxidc.com/Linux/2013-08/88932.htmORA-01172、ORA-01151错误处理 http://www.linuxidc.com/Linux/2013-06/86529.htmORA-00600 [2662]错误解决 http://www.linuxidc.com/Linux/2013-06/86528.htmORA-01078 和 LRM-00109 报错解决方法 http://www.linuxidc.com/Linux/2012-07/66044.htm更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12SQLite中如何用api操作BLOB类型的字段Oracle 11g 新聚集函数listagg实现列转行相关资讯      ORA-00942  ORA-00904 
  • Oracle 11g创建虚拟私有目录RMAN-  (05/11/2015 12:26:42)
  • 存储过程中遇到ORA-00942表或视图  (09/12/2014 20:56:31)
  • 导入数据IMP-00058 ORA-00904  (12/03/2013 12:02:52)
  • scn_to_timestamp ORA-00904  (03/18/2015 20:16:00)
  • ORA-39126 ORA-00904 ORA-06512解  (06/28/2014 13:50:51)
  • Oracle物化视图创建报ORA-00942错  (05/29/2013 09:58:42)
本文评论 查看全部评论 (0)
表情: 姓名: 字数