Oracle Alias 中的双引号

发布于 2024-07-06 18:58:48 字数 232 浏览 5 评论 0原文

中遇到了变化无常的问题

我在 Oracle 9i select 1"FirstColumn" from Dual;

; Oracle 在执行上述查询时抛出错误。 ORA-03001:我的生产服务器中未实现的功能。

相同的查询在我的验证服务器中运行良好。 两台服务器都使用 Oracle 9i

任何人都知道出了什么问题...? 这是 Oracle 服务器中的可配置项吗?

I am having fickle of problem in Oracle 9i

select 1"FirstColumn" from dual;

Oracle throwing error while executing above query. ORA-03001: unimplemented feature in my Production server.

The Same query is working fine in my Validation server. Both servers are with Oracle 9i

Any one have Idea what's wrong...? Is this something configurable item in Oracle server.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

九命猫 2024-07-13 18:58:48

尝试:

 SELECT 1 AS "'FirstColumn'" FROM dual;

有一个类似的问题:
Oracle 列别名中的双引号

Try:

 SELECT 1 AS "'FirstColumn'" FROM dual;

There is a similar question:
Double Quotes in Oracle Column Aliases

温柔少女心 2024-07-13 18:58:48

两台服务器上的完整 Oracle 版本是什么? 9i 是一个营销标签——您是否将 9.0.1.x 数据库与 9.2.0.x 数据库进行比较?

What is the full Oracle version on both servers? 9i is a marketing label-- are you comparing a 9.0.1.x database to a 9.2.0.x database?

栖迟 2024-07-13 18:58:48

如果这样做的话,它会给出相同的输出吗?

select 1 as "FirstColumn" from dual;

要找出 yoru 验证和生产服务器上的特定版本,请对每个服务器执行以下 SQL 并比较结果:

select * from v$version;

Does it give the same output if you do?

select 1 as "FirstColumn" from dual;

To find out the specific versions on yoru Validation and Production servers, do this SQL on each and compare the results:

select * from v$version;
梦中的蝴蝶 2024-07-13 18:58:48

以下是我的服务器的版本:

Oracle9i Enterprise Edition Release 9.2.0.8.0 - Validation
Oracle9i 企业版版本 9.2.0.8.0 - 64 位 生产

64 位确实有所不同。 SELECT 1 AS "'第一列'" FROM Dual; 正在工作,但会导致我更新近数百个软件包。 更改配置可能比更改代码更方便。

问候,
哈努玛斯

The below are the versions of my server:

Oracle9i Enterprise Edition Release 9.2.0.8.0 - Validation
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production

64 bit does make a difference. SELECT 1 AS "'FirstColumn'" FROM dual; is working but will leads me to update nearly hundreds of packages. Configuration change could be handy rather changing the code.

Regards,
Hanumath

度的依靠╰つ 2024-07-13 18:58:48

不管怎样,我在 9.2.0.7 上运行得很好:

select 1"FirstColumn" from dual

对我来说感觉像是一个错误; 你试过Metalink吗?

For what it's worth, I have it working fine with me on 9.2.0.7:

select 1"FirstColumn" from dual

Feels like a bug to me; have you tried Metalink?

北风几吹夏 2024-07-13 18:58:48

Hanumath:MetaLink 是 Oracle 的支持服务。 如果您获得了 Oracle 许可,并且签订了支持合同,您将拥有一个 MetaLink ID。

Hanumath: MetaLink is Oracle's support service. If you're Oracle is licensed, and with a support contract, you would have a MetaLink ID.

温柔一刀 2024-07-13 18:58:48

很确定你应该在 1 和“FirstColumn”之间有一个空格

SELECT 1 "FirstColumn" from dual;

也就是说,使用前面的回答者指出的 AS 关键字更正确。

Pretty sure you should have a space between the 1 and the "FirstColumn"

SELECT 1 "FirstColumn" from dual;

That said, it's more correct to use the AS keyword the previous answerers indicated.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文