开发者

Oracle SQL Syntax: Select

Are the following sql statement valid in Oracle SQL?

1)

select 1

2)

select test from (select开发者_StackOverflow社区 1 as test)

3)

select test from (select 1 as test) s

Thanks in advance!

Best, Will


None of them are valid. These are the correct statements:

1)

select 1 from dual

2)

select test from (select 1 as test from dual)

3)

select test from (select 1 as test from dual) s
-- or also
select s.test from (select 1 as test from dual) s
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜