Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
511b368f
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
511b368f
编写于
7月 09, 1998
作者:
T
Thomas G. Lockhart
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Renamed from "junkfilter" test.
上级
3a3c1b85
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
132 addition
and
0 deletion
+132
-0
src/test/regress/expected/select_implicit.out
src/test/regress/expected/select_implicit.out
+132
-0
未找到文件。
src/test/regress/expected/select_implicit.out
0 → 100644
浏览文件 @
511b368f
QUERY: CREATE TABLE test_missing_target (a int, b int, c char(8));
QUERY: INSERT INTO test_missing_target VALUES (0, 1, 'XXXX');
QUERY: INSERT INTO test_missing_target VALUES (1, 2, 'AAAA');
QUERY: INSERT INTO test_missing_target VALUES (2, 2, 'AAAA');
QUERY: INSERT INTO test_missing_target VALUES (3, 3, 'BBBB');
QUERY: INSERT INTO test_missing_target VALUES (4, 3, 'BBBB');
QUERY: INSERT INTO test_missing_target VALUES (5, 3, 'BBBB');
QUERY: INSERT INTO test_missing_target VALUES (6, 4, 'CCCC');
QUERY: INSERT INTO test_missing_target VALUES (7, 4, 'CCCC');
QUERY: INSERT INTO test_missing_target VALUES (8, 4, 'CCCC');
QUERY: INSERT INTO test_missing_target VALUES (9, 4, 'CCCC');
QUERY: SELECT c, count(*) FROM test_missing_target GROUP BY test_missing_target.c;
c |count
--------+-----
AAAA | 2
BBBB | 3
CCCC | 4
XXXX | 1
(4 rows)
QUERY: SELECT count(*) FROM test_missing_target GROUP BY test_missing_target.c;
count
-----
2
3
4
1
(4 rows)
QUERY: SELECT count(*) FROM test_missing_target GROUP BY a ORDER BY b;
ERROR: parser: illegal use of aggregates or non-group column in target list
QUERY: SELECT count(*) FROM test_missing_target GROUP BY b ORDER BY b;
count
-----
1
2
3
4
(4 rows)
QUERY: SELECT test_missing_target.b, count(*)
FROM test_missing_target GROUP BY b ORDER BY b;
b|count
-+-----
1| 1
2| 2
3| 3
4| 4
(4 rows)
QUERY: SELECT c FROM test_missing_target ORDER BY a;
c
--------
XXXX
AAAA
AAAA
BBBB
BBBB
BBBB
CCCC
CCCC
CCCC
CCCC
(10 rows)
QUERY: SELECT count(*) FROM test_missing_target GROUP BY b ORDER BY b desc;
count
-----
4
3
2
1
(4 rows)
QUERY: SELECT count(*) FROM test_missing_target ORDER BY 1 desc;
count
-----
10
(1 row)
QUERY: SELECT c, count(*) FROM test_missing_target GROUP BY 1;
c |count
--------+-----
AAAA | 2
BBBB | 3
CCCC | 4
XXXX | 1
(4 rows)
QUERY: SELECT c, count(*) FROM test_missing_target GROUP BY 3;
ERROR: ORDER/GROUP BY position 3 is not in target list
QUERY: SELECT count(*) FROM test_missing_target x, test_missing_target y
WHERE x.a = y.a
GROUP BY b ORDER BY b;
ERROR: Column b is ambiguous
QUERY: SELECT x.b, count(*) FROM test_missing_target x, test_missing_target y
WHERE x.a = y.a
GROUP BY x.b;
b|count
-+-----
1| 1
2| 2
3| 3
4| 4
(4 rows)
QUERY: SELECT count(*) FROM test_missing_target x, test_missing_target y
WHERE x.a = y.a
GROUP BY x.b;
count
-----
1
2
3
4
(4 rows)
QUERY: SELECT count(*) INTO TABLE test_missing_target2
FROM test_missing_target x, test_missing_target y
WHERE x.a = y.a
GROUP BY x.b;
QUERY: SELECT * FROM test_missing_target2;
count
-----
1
2
3
4
(4 rows)
QUERY: DROP TABLE test_missing_target;
QUERY: DROP TABLE test_missing_target2;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录