Commit | Line | Data |
fb3e4caf |
1 | create table person ( |
2 | person_id INTEGER PRIMARY KEY, |
3 | name varchar(20), |
4 | age integer, |
5 | weight double(11,2), |
6 | iq tinyint default '0', |
4d438549 |
7 | description text, |
8 | UNIQUE KEY UC_age_name (age) |
fb3e4caf |
9 | ) ENGINE=MyISAM; |
10 | |
11 | create unique index u_name on person (name); |
9ae898b9 |
12 | |
13 | create table employee ( |
14 | position varchar(50), |
15 | employee_id integer, |
4d438549 |
16 | job_title varchar(255), |
6a0f3000 |
17 | CONSTRAINT FK5302D47D93FE702E FOREIGN KEY (employee_id) REFERENCES person (person_id), |
1f5b2625 |
18 | PRIMARY KEY (position, employee_id) USING BTREE |
9ae898b9 |
19 | ) ENGINE=InnoDB; |
20 | |
4d438549 |
21 | create table deleted ( |
22 | id integer |
23 | ); |