forward_import.sql 286 B

12345678910111213141516
  1. /* postgres can not */
  2. /* syntax version 1 */
  3. PRAGMA Library("agg.sql");
  4. PRAGMA Library("lib.sql");
  5. IMPORT lib SYMBOLS $Square, $Agg_sum, $Agg_max;
  6. SELECT $Square(2);
  7. SELECT
  8. AGGREGATE_BY(x, $Agg_sum),
  9. AGGREGATE_BY(x, $Agg_max)
  10. FROM (
  11. SELECT 2 AS x
  12. UNION ALL
  13. SELECT 3 AS x
  14. )