can I do something like this pseudo code and use variables inline within the select? I know that in this case variables are not needed, I have a more complex use case in mind.
x
select t.foo,t.bar,var var1 = 100 + t.foo + t.bar;(return var1) as resultfrom table twhere 1=1 and cheers
Advertisement
Answer
No, Oracle does not support your syntax:
select t.foo,t.bar,var var1 = 100 + t.foo + t.bar;(return var1) as resultfrom table twhere 1=1and
The full syntax for the SELECT statement is documented here and that syntax is not included. Particularly:
SELECTsyntax:
select_listsyntax:

