Facebook
From Gentle Hummingbird, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 47
  1. create table dept (dept_id integer, dname varchar(20), INDEX dept_id_idx(dept_id));
  2. create table emp(emp_id INTEGER, dept_id INTEGER, INDEX dept_id_idx(dept_id), ename varchar(20), salary numeric(6,2), FOREIGN KEY (dept_id) REFERENCES dept(dept_id));