You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/syntax/variables.adoc
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,13 @@ Information regarding the naming of variables may be found xref::syntax/naming.a
24
24
.Variables are only visible in the same query part
25
25
====
26
26
Variables are not carried over to subsequent queries.
27
-
If multiple query parts are chained together using `WITH`, variables have to be listed in the `WITH` clause to be carried over to the next part.
27
+
If multiple query parts are chained together using `WITH`, variables defined in ono part have to be listed in the `WITH` clause to be carried over to the next part.
28
28
For more information see xref::clauses/with.adoc[WITH].
29
29
====
30
30
31
+
[IMPORTANT]
32
+
.Variables imported into a `CALL` subquery are visible in the whole subquery
33
+
====
34
+
Even if the subquery is a multiple query parts are chained together using `WITH`, variables imported from the outer query do not have to be listed in the `WITH` clause to be visible in the next part.
35
+
For more information see xref::subqueries/call-subquery.adoc#variable-scope-clause[The variable scope clause].
0 commit comments