-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdb_schema.sql
More file actions
20 lines (17 loc) · 760 Bytes
/
Copy pathdb_schema.sql
File metadata and controls
20 lines (17 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CREATE TABLE product (
product_id INTEGER PRIMARY KEY AUTOINCREMENT
);
INSERT INTO product VALUES (1);
INSERT INTO product VALUES (2);
INSERT INTO product VALUES (3);
INSERT INTO product VALUES (4);
CREATE TABLE product_description (
product_id INTEGER,
locale varchar(10) not null default '',
description VARCHAR(255),
primary key (product_id, locale)
);
INSERT INTO product_description (product_id, locale, description) VALUES (1, "en_US", "Pants");
INSERT INTO product_description (product_id, locale, description) VALUES (2, "en_US", "Shirt");
INSERT INTO product_description (product_id, locale, description) VALUES (3, "en_US", "Tie");
INSERT INTO product_description (product_id, locale, description) VALUES (4, "en_US", "Shoes");