Y
Hacker News
new
|
ask
|
show
|
jobs
by
akira2501
831 days ago
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.
3 comments
thiht
830 days ago
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.
link
ElectricalUnion
830 days ago
Beginning with Oracle Database Release 23 [released May 2, 2024], it is now optional to select expressions using the FROM DUAL clause.
link
yen223
831 days ago
WITH clauses are optional and appear before SELECT. No reason why the FROM clause couldn't behave the same
link
akira2501
831 days ago
Isn't that strictly for CTEs? In which case, you are SELECTing from the CTE.
link