zlacker

[parent] [thread] 4 comments
1. akira2+(OP)[view] [source] 2024-08-24 18:39:26

    SELECT 1+2;
FROM clauses aren't required, and using multiple tables in FROM doesn't seem to work out too well when that syntax is listed first.
replies(3): >>yen223+2a >>Electr+Q31 >>thiht+Fn1
2. yen223+2a[view] [source] 2024-08-24 19:56:44
>>akira2+(OP)
WITH clauses are optional and appear before SELECT. No reason why the FROM clause couldn't behave the same
replies(1): >>akira2+zf
◧◩
3. akira2+zf[view] [source] [discussion] 2024-08-24 20:45:38
>>yen223+2a
Isn't that strictly for CTEs? In which case, you are SELECTing from the CTE.
4. Electr+Q31[view] [source] 2024-08-25 04:48:16
>>akira2+(OP)
Beginning with Oracle Database Release 23 [released May 2, 2024], it is now optional to select expressions using the FROM DUAL clause.
5. thiht+Fn1[view] [source] 2024-08-25 08:54:58
>>akira2+(OP)
Doesn’t change anything, you can still have the select at the end, and optional from and joins at the beginning. In your example, the select could be at the end, it’s just that there’s nothing before.
[go to top]