with.sql 173 B

1234567
  1. --!syntax_pg
  2. with foo(x) as (
  3. select 1
  4. ), bar as (select 2 as y from foo)
  5. select x,b.y,z,a.y as y2 from foo,bar b,(
  6. with foo as (select 3 as z)
  7. select * from foo, bar) a