diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2016-12-17 21:28:53 -0800 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2016-12-17 21:28:53 -0800 |
commit | 54df2afaa61c6a03cbb4a33c9b90fa572b6d07b8 (patch) | |
tree | 18147b92b969d25ffbe61935fb63035cac820dd0 /db-4.8.30/test/scr038/data/sample.sql |
Berkeley DB 4.8 with rust build script for linux.
Diffstat (limited to 'db-4.8.30/test/scr038/data/sample.sql')
-rw-r--r-- | db-4.8.30/test/scr038/data/sample.sql | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/db-4.8.30/test/scr038/data/sample.sql b/db-4.8.30/test/scr038/data/sample.sql new file mode 100644 index 0000000..62689c6 --- /dev/null +++ b/db-4.8.30/test/scr038/data/sample.sql @@ -0,0 +1,20 @@ +CREATE DATABASE numismatics; /*+ CACHESIZE = 16m */ + +CREATE TABLE coin (cid INT(8) PRIMARY KEY, + unit VARCHAR2(20), + value NUMERIC(8,2), -- just a comment here; + mintage_year INT(8), + mint_id INT(8), + CONSTRAINT mint_id_fk FOREIGN KEY(mint_id) + REFERENCES mint(mid)); + +CREATE TABLE mint (mid INT(8) PRIMARY KEY, + country VARCHAR2(20), + city VARCHAR2(20)); --+ DBTYPE = HASH + +CREATE INDEX unit_index ON coin(unit); + +CREATE TABLE random (rid VARCHAR2(20) PRIMARY KEY, + chunk bin(127)); + +/* SELECT * from mint;*/ |