- 浏览: 2870040 次
- 性别:
- 来自: 武汉
文章分类
- 全部博客 (1173)
- 名言警句 (5)
- 心情随笔 (50)
- 数据库 (57)
- Java基础 (241)
- J2EE框架 (91)
- 数据结构 (12)
- 程序设计 (21)
- WEB技术 (128)
- 网络日志 (12)
- IT资讯 (247)
- linux (64)
- solaris (2)
- 其它 (143)
- WebService (4)
- 日语学习 (2)
- 机器人 (5)
- Android (5)
- cgywin (3)
- Game (1)
- DWR (1)
- spring (8)
- canvas (1)
- Guava (3)
- Modbus (5)
- 测试 (6)
- mongodb (9)
- Quartz (2)
- Cron (1)
- windows (2)
- 持续集成 (1)
- bootstrap (3)
- 结对编程 (1)
- nodejs (1)
- Netty (1)
- 安全 (3)
- webstorm (2)
- sparkline (1)
- Job (1)
- git (3)
- Maven (3)
- knockout (5)
- jquery (1)
- bower (1)
- docker (1)
- confluence (4)
- wiki (1)
- GoogleMap (1)
- jekyll (10)
- ruby (2)
- npm (3)
- browserify (1)
- gulp (3)
- openwrt (1)
- discuz (3)
- 输入法 (1)
- JPA (1)
- eclipse (2)
- IntelliJ (1)
- css (1)
- 虚拟机 (1)
- 操作系统 (1)
- azkaban (2)
- scrum (1)
最新评论
-
pangxiea_:
你好, 想请问一下 Linux下 这么使用rxtxcomm 在 ...
使用Java进行串口通信 -
abababudei:
请教一下,这个您是怎么解决的:/dev/ttyS2enteri ...
Java应用程序的MODBUS通讯 -
xuniverse:
hannibal005 写道楼主,我问下 request.se ...
用javascript与java进行RSA加密与解密 -
atxkm:
找了一下午,终于找到了
gulp 拷贝文件时如何移除文件目录结构 -
kalogen:
gtczr 写道非常感谢,经过我自己的修改,已经完美实现。发出 ...
用javascript与java进行RSA加密与解密
怎样在Form block中实现Group by---一篇不错的文章
Problem Description:
====================
In Oracle Forms, you define a GROUP BY clause for a block
by setting the WHERE Clause or ORDER BY Clause block property.
You run the form.
When you try to execute a query, the following error occurs:
FRM-40505: ORACLE error: unable to perform query.
When you select Help-->Display error, one of the following errors displays:
Error 1: without setting WHERE or ORDER BY clause
-------------------------------------------------
SELECT <column1, column2, etc.>,ROWID FROM TABLE
WHERE GROUP BY <column1, column2, etc.>
or
SELECT <column1, column2, etc.>,ROWID FROM TABLE
WHERE GROUP BY <*subset* of column1, column2, etc.>
or
SELECT <column1, column2, etc.>,ROWID FROM TABLE
ORDER BY GROUP BY <column1, column2, etc.>
or
SELECT <column1, column2, etc.>,ROWID FROM TABLE
ORDER BY GROUP BY <*subset* of column1, column2, etc.>
and
ORA-00936: missing expression
Error 2: ORDER BY Clause lists a column
---------------------------------------
SELECT <column1, column2, etc.>,ROWID FROM TABLE
ORDER BY <column> GROUP BY <column1, column2, etc.>
or
SELECT <column1, column2, etc.>,ROWID FROM TABLE
ORDER BY <column> GROUP BY <*subset* of column1, column2, etc.>
and
ORA-00933: SQL command not properly ended
Error 3: WHERE Clause has a condition and
you GROUP BY a subset of columns in the SELECT list
------------------------------------------------------------
SELECT <column1, column2, etc.>,ROWID FROM TABLE
WHERE <condition> GROUP BY <*subset* of column1, column2, etc.>
and
ORA-00979: not a GROUP BY expression
How do you specify a GROUP BY clause for a block in Oracle Forms?
Solution Description:
=====================
To query a block with a GROUP BY clause, do the following:
1. Specify the GROUP BY clause in the WHERE Clause block property.
Error 1
-------
ORA-00936 occurs when you specify only a GROUP BY clause
in either the WHERE Clause or ORDER BY Clause block property.
Oracle Forms automatically inserts the word WHERE into the
SQL statement when you set the WHERE Clause block property and
the word ORDER BY when you set the ORDER BY Clause block property.
The construction of the SQL statement is invalid with the presence of
WHERE GROUP BY or ORDER BY GROUP BY.
Workaround:
In the WHERE Clause block property, precede the GROUP BY clause
with a dummy WHERE condition (e.g. 1=1):
1=1 GROUP BY <column1, column2, etc.>
Error 2
-------
ORA-00933 occurs because the GROUP BY clause must precede the
ORDER BY clause. Hence, you cannot set the GROUP BY clause in the
ORDER BY Clause block property.
Error 3
-------
ORA-00979 occurs when you specify the GROUP BY clause in the
WHERE Clause block property and do not reference all columns
in the SELECT list in the GROUP BY clause. All columns in the
SELECT list that are not in group functions must be in the
GROUP BY clause.
2. Every SELECT statement issued by Oracle Forms contains a
pseudocolumn ROWID. Because all columns in the SELECT list
that are not in group functions must be in the GROUP BY clause,
ROWID must also be in the GROUP BY clause. However, because ROWID
is unique for every row, grouping by ROWID does not yield the
desired results.
Workaround:
To avoid grouping by ROWID, turn off the selection of ROWID:
a. Set the following block properties:
Key Mode: Non-Updateable
Primary Key: True (On)
Setting the Key Mode block property to Non-Updateable
eliminates the need for Oracle to use the ROWID as the
unique identifier for each row.
b. For at least one item in the block, set the following item property:
Primary Key: True (On)
Note: Oracle Forms 4.5.7.11.0 lets you get away with not
setting the above properties when specifying a dummy
WHERE condition and GROUP BY clause in the
WHERE Clause block property. ROWID does not end up in
the SELECT list despite the Key Mode property setting.
Other versions (e.g. 4.5.6.5.5, 4.5.7.1.6, 4.5.8.1.2)
require you to set the above properties.
3. When you use a GROUP BY clause in the WHERE Clause block property,
do not allow users to insert or update data in the block.
Run the form, and query the block.
This displays the grouped records.
Solution Explanation:
=====================
Oracle does not support modification of the WHERE Clause and ORDER BY Clause
block properties in non-standard ways. Refer to the WHERE/ORDER BY Clause
documentation in the Oracle Forms 4.X Reference Manual:
WHERE Clause and ORDER BY Clause are standard SQL clauses,
and must follow the rules for such constructs as specified
in the SQL Language Reference Manual.
Enhancement request 565914 for a GROUP BY Clause block property
in Forms has been filed.
Additional Information:
=======================
Oracle Documentation:
---------------------
Oracle Forms 4.X Reference Manual
Chapter 5, Properties
Key Mode, Primary Key (Block), Primary Key (Item), and
WHERE Clause/ORDER BY Clause
Oracle7 Server SQL Reference
Chapter 4, Commands
SELECT
Enhancement Request:
--------------------
565914
CREATE A GROUP BY CLAUSE BLOCK PROPERTY IN ORACLE FORMS
Problem Description:
====================
In Oracle Forms, you define a GROUP BY clause for a block
by setting the WHERE Clause or ORDER BY Clause block property.
You run the form.
When you try to execute a query, the following error occurs:
FRM-40505: ORACLE error: unable to perform query.
When you select Help-->Display error, one of the following errors displays:
Error 1: without setting WHERE or ORDER BY clause
-------------------------------------------------
SELECT <column1, column2, etc.>,ROWID FROM TABLE
WHERE GROUP BY <column1, column2, etc.>
or
SELECT <column1, column2, etc.>,ROWID FROM TABLE
WHERE GROUP BY <*subset* of column1, column2, etc.>
or
SELECT <column1, column2, etc.>,ROWID FROM TABLE
ORDER BY GROUP BY <column1, column2, etc.>
or
SELECT <column1, column2, etc.>,ROWID FROM TABLE
ORDER BY GROUP BY <*subset* of column1, column2, etc.>
and
ORA-00936: missing expression
Error 2: ORDER BY Clause lists a column
---------------------------------------
SELECT <column1, column2, etc.>,ROWID FROM TABLE
ORDER BY <column> GROUP BY <column1, column2, etc.>
or
SELECT <column1, column2, etc.>,ROWID FROM TABLE
ORDER BY <column> GROUP BY <*subset* of column1, column2, etc.>
and
ORA-00933: SQL command not properly ended
Error 3: WHERE Clause has a condition and
you GROUP BY a subset of columns in the SELECT list
------------------------------------------------------------
SELECT <column1, column2, etc.>,ROWID FROM TABLE
WHERE <condition> GROUP BY <*subset* of column1, column2, etc.>
and
ORA-00979: not a GROUP BY expression
How do you specify a GROUP BY clause for a block in Oracle Forms?
Solution Description:
=====================
To query a block with a GROUP BY clause, do the following:
1. Specify the GROUP BY clause in the WHERE Clause block property.
Error 1
-------
ORA-00936 occurs when you specify only a GROUP BY clause
in either the WHERE Clause or ORDER BY Clause block property.
Oracle Forms automatically inserts the word WHERE into the
SQL statement when you set the WHERE Clause block property and
the word ORDER BY when you set the ORDER BY Clause block property.
The construction of the SQL statement is invalid with the presence of
WHERE GROUP BY or ORDER BY GROUP BY.
Workaround:
In the WHERE Clause block property, precede the GROUP BY clause
with a dummy WHERE condition (e.g. 1=1):
1=1 GROUP BY <column1, column2, etc.>
Error 2
-------
ORA-00933 occurs because the GROUP BY clause must precede the
ORDER BY clause. Hence, you cannot set the GROUP BY clause in the
ORDER BY Clause block property.
Error 3
-------
ORA-00979 occurs when you specify the GROUP BY clause in the
WHERE Clause block property and do not reference all columns
in the SELECT list in the GROUP BY clause. All columns in the
SELECT list that are not in group functions must be in the
GROUP BY clause.
2. Every SELECT statement issued by Oracle Forms contains a
pseudocolumn ROWID. Because all columns in the SELECT list
that are not in group functions must be in the GROUP BY clause,
ROWID must also be in the GROUP BY clause. However, because ROWID
is unique for every row, grouping by ROWID does not yield the
desired results.
Workaround:
To avoid grouping by ROWID, turn off the selection of ROWID:
a. Set the following block properties:
Key Mode: Non-Updateable
Primary Key: True (On)
Setting the Key Mode block property to Non-Updateable
eliminates the need for Oracle to use the ROWID as the
unique identifier for each row.
b. For at least one item in the block, set the following item property:
Primary Key: True (On)
Note: Oracle Forms 4.5.7.11.0 lets you get away with not
setting the above properties when specifying a dummy
WHERE condition and GROUP BY clause in the
WHERE Clause block property. ROWID does not end up in
the SELECT list despite the Key Mode property setting.
Other versions (e.g. 4.5.6.5.5, 4.5.7.1.6, 4.5.8.1.2)
require you to set the above properties.
3. When you use a GROUP BY clause in the WHERE Clause block property,
do not allow users to insert or update data in the block.
Run the form, and query the block.
This displays the grouped records.
Solution Explanation:
=====================
Oracle does not support modification of the WHERE Clause and ORDER BY Clause
block properties in non-standard ways. Refer to the WHERE/ORDER BY Clause
documentation in the Oracle Forms 4.X Reference Manual:
WHERE Clause and ORDER BY Clause are standard SQL clauses,
and must follow the rules for such constructs as specified
in the SQL Language Reference Manual.
Enhancement request 565914 for a GROUP BY Clause block property
in Forms has been filed.
Additional Information:
=======================
Oracle Documentation:
---------------------
Oracle Forms 4.X Reference Manual
Chapter 5, Properties
Key Mode, Primary Key (Block), Primary Key (Item), and
WHERE Clause/ORDER BY Clause
Oracle7 Server SQL Reference
Chapter 4, Commands
SELECT
Enhancement Request:
--------------------
565914
CREATE A GROUP BY CLAUSE BLOCK PROPERTY IN ORACLE FORMS
发表评论
-
幻读,重复读,脏读 以及Spring的事务属性说明
2015-07-14 16:45 6162设置事务隔离性级别 1)幻读:事务1读取记录时事务 ... -
安装完MySQL 后必须调整的 10 项配置
2015-06-01 13:27 1344当我们被人雇来监测MyS ... -
centos用yum安装mongodb
2015-03-04 09:23 725一、配置yum包管理文件 创建文件/etc/y ... -
提升MongoDB安全性的十个技巧
2015-03-03 16:08 674MongoDB提供了一系列组件来提升数据的安全性。数据安全 ... -
Compound indexes support in MongoDB
2014-03-13 10:00 896Compound indexes support queri ... -
Mongodb与spring集成 MongoRepository实现增删改查和复杂查询
2014-03-11 08:44 4762与HibernateRepository类似,通过继承Mo ... -
How to use hsqldb to test DB operation
2014-01-10 15:17 955sometime we want to test dao o ... -
How to test Mongodb by Spring MongoTemplate
2013-11-21 15:01 3531here is the example: 1. model ... -
NOSQL数据库大比拼:Cassandra vs MongoDB vs CouchDB vs Redis vs Riak vs HBase
2013-11-15 18:20 1732话说,尽管 SQL 数据库一直是我们IT行业中最有用的工具, ... -
MongoDB在windows下的安装与基本配置
2013-11-05 11:12 1014installation and configuration ... -
BoneCP的使用
2013-09-08 14:47 1935在介绍怎么使用之前,先来看看BoneCP的特性(Featur ... -
重新创建PostgreSQL服务
2013-08-26 16:58 916之前在pgAdmin中删除掉了“服务器”,当自己手动创建一个 ... -
postgresql环境变量配置
2013-08-15 08:59 1520Strictly speaking, this is no ... -
Java 程序员在写 SQL 程序时候常犯的 10 个错误
2013-08-13 07:28 897Java程序员编程时需要混合面向对象思维和一般命令式编程的 ... -
安装 postgresql 报错 "An error occured executing the Microsoft VC++ runtime installe
2013-08-12 10:01 1487安装 postgresql 报错 "An erro ... -
win7 64安装 oracle Client
2013-05-08 15:44 2378操作系统:win7 旗舰版 for 64bit oracl ... -
The Best Way to Save/Import Toad Settings
2013-05-07 16:58 990On the Toad list, a poster ask ... -
20 个数据库设计最佳实践
2012-02-22 23:01 1186使用明确、统一的标明和列名,例如 School, ... -
学习v$librarycache视图
2012-01-10 19:58 2563通过查看v$librarycache视 ... -
Oracle中各个命中率的总结及调优笔记整理
2012-01-09 17:09 1466关于Oracle中各个命中率的计算以及相关的调优 1 ...
相关推荐
在本文中,我们将深入探讨`rc-field-form`的核心概念、工作原理以及如何在实际项目中实现和使用它。 1. **核心概念** - **Field**: `rc-field-form`中的基本单位,它封装了输入组件,负责状态管理和验证。 - **...
赠送jar包:feign-form-spring-3.8.0.jar; 赠送原API文档:feign-form-spring-3.8.0-javadoc.jar; 赠送源代码:feign-form-spring-3.8.0-sources.jar; 赠送Maven依赖信息文件:feign-form-spring-3.8.0.pom; ...
赠送jar包:feign-form-3.8.0.jar; 赠送原API文档:feign-form-3.8.0-javadoc.jar; 赠送源代码:feign-form-3.8.0-sources.jar; 赠送Maven依赖信息文件:feign-form-3.8.0.pom; 包含翻译后的API文档:feign-form...
在实际开发中,form-data请求格式不仅适用于文件上传,还可以用于任何二进制数据的上传。它的主要优势在于能够以一种结构化的格式发送多个部分的数据,包括文本和二进制内容,非常适合需要上传复杂数据的Web应用程序...
form-generator项目集成方案是指将form-generator项目集成到本地项目中,以便实现表单可视化设计和生成表单代码的功能。该方案主要涉及到 Vue 项目的多页面结构、组件引入、样式文件复制、npm安装等几个方面。 多...
在Web开发中,数据交互是不可或缺的一部分,而Ajax技术正是实现页面异步更新的关键。随着前端框架的不断发展,像Vue.js这样的库广泛使用,Axios作为一款强大的HTTP客户端,已经成为Vue生态系统中的重要组成部分。在...
Oracle Form 是 Oracle E-Business Suite R12 中的一个功能强大且灵活的开发工具,用于创建复杂的商业应用程序。其中,触发器(Trigger)是一种非常重要的组件,它可以根据不同的事件来触发相应的操作。 Oracle ...
multipart/form-data是另一种常用的编码格式,它将窗体数据编码为一条消息,页上的每个控件对应消息中的一个部分。这种编码格式可以上传文件,并且可以处理复杂的数据结构。 在实际开发中,我们需要根据具体情况...
Element UI表单设计,将生成的代码直接运行在基于Element的vue项目中,也可导出JSON表单,使用配套的解析器将JSON解析成真实的表单。 npm i form-gen-parser@1.0.3 npm install clipboard@2.0.4 --save npm install ...
在IT行业中,网络通信是不可或缺的一部分,而上传文件或发送包含多个部分的数据通常涉及使用`multipart/form-data`编码方式。`multipart/form-data`是一种HTTP请求的Content-Type,它允许我们发送一个请求体,其中...
赠送jar包:feign-form-spring-3.8.0.jar; 赠送原API文档:feign-form-spring-3.8.0-javadoc.jar; 赠送源代码:feign-form-spring-3.8.0-sources.jar; 赠送Maven依赖信息文件:feign-form-spring-3.8.0.pom; ...
《k-form-design表单设计器 v3.8.18》是一款强大的前端表单构建工具,专为提升开发效率而设计。这款开源软件允许开发者快速、灵活地创建自定义表单,适应各种业务需求,尤其适合于系统软件工具的构建和建站模板的...
本教程将深入讲解如何利用 Indy 10 库中的 `TIdHTTP` 控件来实现这一功能。 首先,你需要确保已经安装了Indy 10库,这是一个强大的网络通信组件集,包含了处理HTTP请求所需的各种组件。在Delphi 7中,你可以通过...
使用c#实现的HttpClient拼接multipart/form-data形式参数post提交数据,包含图片内容,有需要的可以下载,希望能帮到有需要的人,
用C语言实现multipart/form-data文件上传,没有用到curl之类的库。之前做个小的日志上传程序写的。
在毕业设计论文中,"vue-ele-form-generator"可以作为一个实际应用案例,用于探讨前端开发中的动态表单生成技术,或者研究如何通过可视化工具提高软件开发效率。学生可以分析其架构设计,探讨组件化、模块化的实现...
本篇文章将深入探讨如何利用jQuery从JSON对象转换为form提交数据。 首先,JSON(JavaScript Object Notation)是一种轻量级的数据交换格式,它基于JavaScript的一个子集,易于人阅读和编写,同时也易于机器解析和...
总的来说,这个资源对于那些希望在Win-Form和Web-Form项目中实现一致界面的C#开发者来说,是一份宝贵的工具。通过使用它,开发者可以减少重复工作,提高代码质量,并且能够专注于业务逻辑的实现,而不是基础界面组件...