libdb/test/sql_codegen/data/constraints_on_nonexistent_column.sql
2011-09-13 13:44:24 -04:00

14 lines
475 B
SQL

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(mint_id)
REFERENCES mint(mmid));
CREATE TABLE mint (mid INT(8) PRIMARY KEY,
country VARCHAR(20),
city VARCHAR(20));