Está en la página 1de 1

INSTITUTON TECNOLOGICO DE CIUDAD VICTORIA.

mysql> create table productos(


-> fabricante char(3),
-> producto char(10),
-> descripcion char(20)
-> , precio float,
-> existencia int,
-> primary key (fabricante,producto));
Query OK, 0 rows affected (0.18 sec)
mysql> create table repventas(
-> representante int,
-> nombre varchar (20),
-> edad int,
-> oficina int,
-> cuota float (6,0)
-> , ventas float(6,0)
-> , contrato date,
-> primary key (representante),
-> foreign key(oficina) references oficinas(oficina));
Query OK, 0 rows affected (0.14 sec)

También podría gustarte