libdb/test/sql_codegen/data/sample_nontxn_index.sql

19 lines
664 B
MySQL
Raw Normal View History

2011-09-13 17:44:24 +00:00
CREATE DATABASE numismatics; /*+ MODE = TRANSACTIONAL */
CREATE TABLE coin (cid INT(8) PRIMARY KEY,
unit VARCHAR2(20),
value NUMERIC(8,2),
mintage_year INT(8),
mint_id INT(8),
CONSTRAINT mint_id_fk FOREIGN KEY(mint_id)
REFERENCES mint(mid)); --+ MODE = NONTRANSACTIONAL
CREATE TABLE mint (mid INT(8) PRIMARY KEY,
country VARCHAR2(20),
city VARCHAR2(20)); --+ MODE = NONTRANSACTIONAL
CREATE INDEX coin_index ON coin(unit);
CREATE TABLE random (rid VARCHAR2(20) PRIMARY KEY,
chunk bin(127));