-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate.sql
More file actions
45 lines (45 loc) · 874 Bytes
/
Copy pathcreate.sql
File metadata and controls
45 lines (45 loc) · 874 Bytes
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
39
40
41
42
43
44
45
DROP TABLE IF EXISTS customers;
CREATE TABLE customers (
id SERIAL PRIMARY KEY,
name VARCHAR,
street VARCHAR,
city VARCHAR,
state CHAR(2),
credit_limit NUMERIC
);
INSERT INTO customers (name, street, city, state, credit_limit)
VALUES (
'Pedro Augusto da Rocha',
'Rua Pedro Carlos Hoffman',
'Porto Alegre',
'RS',
700.00
),
(
'Antonio Carlos Mamel',
'Av. Pinheiros',
'Belo Horizonte',
'MG',
3500.50
),
(
'Luiza Augusta Mhor',
'Rua Salto Grande',
'Niteroi',
'RJ',
4000.00
),
(
'Jane Ester',
'Av 7 de setembro',
'Erechim',
'RS',
800.00
),
(
'Marcos Antônio dos Santos',
'Av Farrapos',
'Porto Alegre',
'RS',
4250.25
);