由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Oracle 11g坑爹还是公司DBA坑爹
相关主题
服了,这就是我们QA和DBA的水平Oracle,table有上千个column
考古了半天,大家说的db developer和一般的programmer有什么Quick way to learn database?
advices please on learning OraclePreparing Oracle Certificate Exam, but...??
Oracle证书Oracle 8 certification
怎么准备第一份DBA工作新手求助: 学那个DATABASE软件好呢?
[转载] Can anyone interpret this simple SQL?数据库问题一问
oracle rowid 问题急问:如何恢复被删除的数据?
Oracle新手请教一个问题Oracle DBA or MS SQL DBA? Which career path to choose?
相关话题的讨论汇总
话题: select话题: dual话题: union话题: val话题: where
进入Database版参与讨论
1 (共1页)
B*****g
发帖数: 34098
1
简单的SQL都bug无数,是11g烂还是公司DBA烂?
y****w
发帖数: 3747
2
不带这么欺负dba的。

【在 B*****g 的大作中提到】
: 简单的SQL都bug无数,是11g烂还是公司DBA烂?
c*****d
发帖数: 6045
3
give us some examples

【在 B*****g 的大作中提到】
: 简单的SQL都bug无数,是11g烂还是公司DBA烂?
B*****g
发帖数: 34098
4
前面recursive和distinct就不提了. 看下面这个:
WITH a AS (
SELECT 1 ID, 'A' VAL FROM DUAL
UNION ALL
SELECT 2, 'A' FROM DUAL),
b AS (
SELECT 2 AS ID FROM DUAL
)
SELECT a.id, b.id
FROM a, b
WHERE a.val LIKE '%A%'
AND a.id = b.id(+);
下面这些都对:
WITH a AS (
SELECT 1 ID, 'A' VAL FROM DUAL
UNION ALL
SELECT 2, 'A' FROM DUAL),
b AS (
SELECT 2 AS ID FROM DUAL
UNION
SELECT 2 AS ID FROM DUAL
)
SELECT a.id, b.id
FROM a, b
WHERE a.val LIKE '%A%'
AND a.id = b.id(+);
WITH a AS (
SELECT 1 ID, 'A' VAL FROM DUAL
UNION ALL
SELECT 2, 'A' FROM DUAL),
b AS (
SELECT 2 AS ID FROM DUAL
)
SELECT a.id, b.id
FROM a, b
WHERE a.val = 'A'
AND a.id = b.id(+);
WITH a AS (
SELECT 1 ID, 'A' VAL FROM DUAL
UNION ALL
SELECT 2, 'A' FROM DUAL),
b AS (
SELECT 2 AS ID FROM DUAL
)
SELECT a.id, b.id
FROM a, b
WHERE REGEXP_LIKE( a.val, 'A')
AND a.id = b.id(+);

【在 c*****d 的大作中提到】
: give us some examples
b*****r
发帖数: 239
5
which version 11.1 or 11.2?
B*****g
发帖数: 34098
6
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit

【在 b*****r 的大作中提到】
: which version 11.1 or 11.2?
1 (共1页)
进入Database版参与讨论
相关主题
Oracle DBA or MS SQL DBA? Which career path to choose?怎么准备第一份DBA工作
外行请教[转载] Can anyone interpret this simple SQL?
database找工作求助 着急 感谢了oracle rowid 问题
DBA职业要求Oracle新手请教一个问题
服了,这就是我们QA和DBA的水平Oracle,table有上千个column
考古了半天,大家说的db developer和一般的programmer有什么Quick way to learn database?
advices please on learning OraclePreparing Oracle Certificate Exam, but...??
Oracle证书Oracle 8 certification
相关话题的讨论汇总
话题: select话题: dual话题: union话题: val话题: where