blob: 23e1af9551af891d8bba13d5fa9455229f737b9e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* syntax version 1 */
/* postgres can not */
define subquery $dup($x) as
select * from $x(1)
union all
select * from $x(2);
end define;
define subquery $sub($n) as
select $n * 10;
end define;
select * from $dup($sub);
|