-
Notifications
You must be signed in to change notification settings - Fork 923
/
Copy pathimport.sql
27 lines (23 loc) · 1.01 KB
/
import.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
CREATE sequence Cliente_SEQ start with 1 increment by 50;
CREATE sequence Transacao_SEQ start with 1 increment by 50;
CREATE TABLE cliente (
id bigint not null,
limite integer,
saldo integer,
primary key (id)
);
CREATE TABLE transacao (
id bigint not null,
descricao varchar(10),
realizada_em timestamp(6),
tipo char(1) not null,
valor integer not null,
cliente_id bigint,
primary key (id)
);
INSERT INTO cliente (id, limite, saldo) VALUES
(1, 100000, 0),
(2, 80000, 0),
(3, 1000000, 0),
(4, 10000000, 0),
(5, 500000, 0);