Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/04/2002, 16:27
agarciaa
 
Fecha de Ingreso: julio-2001
Mensajes: 278
Antigüedad: 23 años, 7 meses
Puntos: 0
Re: create table en mysql

Otro Query aparte puede ser:

ALTER TABLE habitacion CONSTRAINT ADD FOREING KEY habitacion(cod_tipo) REFERENCES codigo(cod_tipo);

ALTER TABLE habitacion CONSTRAINT ADD FOREING KEY habitacion(cod_hab) REFERENCES codigo(cod_hab);