Redian新闻
>
1. Oracle vs. SQL92 Re: Just
avatar
1. Oracle vs. SQL92 Re: Just# Database - 数据库
o*i
1
hehe, 姑且从这里开始吧 :)
本来想先说一个Oracle的好处,再说一个坏处,现在就颠倒一下吧

As I know, they don't.
For example, outer joins.
SQL92's outer join is like this:
SELECT ......
FROM A LEFT/RIGHT/FULL OUTER JOIN B ON (A.attr1 = B.attr2)
.........
In Oracle, you can do LEFT, RIGHT outer join like this
SELECT .....
FROM A, B
WHERE A.attr1(+) = B.attr2
or A.attr1 = B.attr2(+) for RIGHT OUTER join.
But you don't have general means to do FULL OUTER JOIN:
avatar
B*n
2

yeah right :) I was thinking of adding an "except outer join"
statement to my previous post. How often people use (full)
outer join anyways...
first, the device drivers are written by hardware vendors,
and have nothing to do with microsoft itself.
second, ain't there enough headaches resulting from M$'s crappy
support of hardwares? I once plugged in a new scanner to my boss'
computer and it caused his NT box to crash beyond rescue.

【在 o****i 的大作中提到】
: hehe, 姑且从这里开始吧 :)
: 本来想先说一个Oracle的好处,再说一个坏处,现在就颠倒一下吧
:
: As I know, they don't.
: For example, outer joins.
: SQL92's outer join is like this:
: SELECT ......
: FROM A LEFT/RIGHT/FULL OUTER JOIN B ON (A.attr1 = B.attr2)
: .........
: In Oracle, you can do LEFT, RIGHT outer join like this

avatar
x*o
3
yes, you can not use A.attr1(+)=B.attr2(+);
but to my understanding,you can get a outer join using:
select distinct a.attr1,b.attr2 from a,b ;

【在 B*****n 的大作中提到】
:
: yeah right :) I was thinking of adding an "except outer join"
: statement to my previous post. How often people use (full)
: outer join anyways...
: first, the device drivers are written by hardware vendors,
: and have nothing to do with microsoft itself.
: second, ain't there enough headaches resulting from M$'s crappy
: support of hardwares? I once plugged in a new scanner to my boss'
: computer and it caused his NT box to crash beyond rescue.

avatar
B*n
4

that's different... a full outer join is an extension
of a simple join (add rows from both tables that were
filtered out in a simple join).
Your query on the other hand is doing a cross product (no join
conditions).
In oracle you can get a full outer join by UNION a
left and a right outer join.
For instance,
SQL> select * from AAA;
A B C

【在 x********o 的大作中提到】
: yes, you can not use A.attr1(+)=B.attr2(+);
: but to my understanding,you can get a outer join using:
: select distinct a.attr1,b.attr2 from a,b ;

avatar
x*o
5
now i misunderstood your meaning le.
sorry.

【在 B*****n 的大作中提到】
:
: that's different... a full outer join is an extension
: of a simple join (add rows from both tables that were
: filtered out in a simple join).
: Your query on the other hand is doing a cross product (no join
: conditions).
: In oracle you can get a full outer join by UNION a
: left and a right outer join.
: For instance,
: SQL> select * from AAA;

avatar
w*h
6
Why not compare the SQL-99 features in both database?
Thanks!
avatar
B*n
7

i dont think anybody is supporting SQL99 at this time...
just announcements and chest-poundings.

【在 w*****h 的大作中提到】
: Why not compare the SQL-99 features in both database?
: Thanks!

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