SHARE
TWEET

Untitled

a guest Jun 16th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. create table EMPLEADO(
  2. codigo_c varchar(20) primary key,
  3. nombre varchar(30) not null,
  4. edad int(2) not null,
  5. oficio varchar(15) not null,
  6. dir varchar(15) not null,
  7. fecha_alt varchar(15) not null,
  8. salario int(7) not null,
  9. comision int(5) not null,
  10. depto_no int(3) not null
  11. );
  12.  
  13. create table DEPARTAMENTO(
  14. depto_num int(3) primary key,
  15. nombre_depto varchar(20) not null,
  16. localizacion varchar(15) not null,
  17. foreign key (depto_num) references EMPLEADO(depto_no)
  18. );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top