blob: 8bf001cec9cc4289198835ef176f81822b337cd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
CREATE DATABASE numismatics;
CREATE TABLE coin (cid INT(8) PRIMARY KEY,
unit VARCHAR(20),
value NUMERIC(8,2),
mintage_year INT(8),
mint_id INT(8),
CONSTRAINT mint_id_fk FOREIGN KEY(id)
REFERENCES mint(mid));
CREATE TABLE mint (mid INT(8) PRIMARY KEY,
country VARCHAR(20),
city VARCHAR(20)); --+ DBTYPE = HASH
|