Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.56 KB | None | 0 0
  1. $tabla_usuarios_servicios = 'create table if not exists usuarios_servicios (
  2.                             cod_alquiler int(10),
  3.                             dni varchar(9) not null,
  4.                             descuento int(2) not null,
  5.                             fecha date not null,
  6.                             fecha_fin date not null,
  7.                             hora varchar(8) not null,
  8.                             forma_pago varchar(16) not null,
  9.                             dni varchar(9) not null,
  10.                             cod_servicio varchar(4) not null,
  11.                             primary key (cod_alquiler),
  12.                             foreign key (dni) references usuarios (dni),
  13.                             foreign key (cod_servicio) references servicios (cod_servicio)
  14.                             ) TYPE = INNODB;';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement