File: ex61.sql

package info (click to toggle)
pgformatter 5.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,964 kB
  • sloc: sql: 186,493; perl: 5,694; makefile: 2; sh: 1
file content (24 lines) | stat: -rw-r--r-- 478 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SELECT
    myfunction (123, 'ertez', col1),
    pg_sleep(12)
FROM
    mytbl1;

CREATE OR REPLACE FUNCTION f() RETURNS BOOL AS '/foo','bar' LANGUAGE C;

SELECT
  lives_ok ('INSERT INTO "order".v_order (status, order_id, name)
    VALUES (''complete'', ''' || get_order_id () || ''', '' caleb ''', 'with all parameters');

INSERT INTO table1
  (id, name)
VALUES
-- 5 min <= duration < 15 min
  (10, 'duration');

INSERT INTO table1
  (id, name)
VALUES
-- name
  (10, 'duration')