-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sql
38 lines (34 loc) · 871 Bytes
/
test.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t2;
DROP TABLE IF EXISTS t3;
DROP TABLE IF EXISTS t4;
DROP TABLE IF EXISTS t5;
CREATE TABLE t1 (
id bigserial primary key
, i integer not null unique
, str text not null
, nullable_str text
, t_with_tz timestamp without time zone not null
, t_without_tz timestamp with time zone not null
, tm time
);
CREATE TABLE t2 (
id bigserial primary key
, i integer not null unique
, str text not null
, t_with_tz timestamp without time zone not null
, t_without_tz timestamp with time zone not null
);
CREATE TABLE t3 (
id bigserial not null
, i integer not null
, str text not null
, t_with_tz timestamp without time zone not null
, t_without_tz timestamp with time zone not null
, PRIMARY KEY(id, i)
);
CREATE TABLE t4 (
id integer not null
, i integer not null
, PRIMARY KEY(id, i)
);