Ver Mensaje Individual
  #13 (permalink)  
Antiguo 06/01/2013, 07:24
rbczgz
 
Fecha de Ingreso: noviembre-2003
Ubicación: Zaragoza, España
Mensajes: 1.257
Antigüedad: 20 años, 5 meses
Puntos: 154
Respuesta: Cómo hacer esto?

Hola carlosuc99,

Creo que a lo que se refiere gnzsoloyo es a algo así, solo es un ejemplo, lo real deberás colocarlo tú:

Tabla "habilitaciones_coches":

Código MySQL:
Ver original
  1. CREATE TABLE IF NOT EXISTS `habilitaciones_coches` (
  2.   `id_habilitaciones` int(11) NOT NULL auto_increment,
  3.   `coche` varchar(15) collate latin1_spanish_ci NOT NULL,
  4.   PRIMARY KEY  (`id_habilitaciones`),
  5.   KEY `coche` (`coche`)
  6. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_spanish_ci AUTO_INCREMENT=1 ;


Tabla "rutas":

Código MySQL:
Ver original
  1. CREATE TABLE IF NOT EXISTS `rutas` (
  2.   `id_rutas` int(11) NOT NULL auto_increment,
  3.   `origen` varchar(15) collate latin1_spanish_ci NOT NULL,
  4.   `destino` varchar(15) collate latin1_spanish_ci NOT NULL,
  5.   `coche` varchar(15) collate latin1_spanish_ci NOT NULL,
  6.   PRIMARY KEY  (`id_rutas`),
  7.   KEY `coche` (`coche`)
  8. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_spanish_ci AUTO_INCREMENT=1 ;

No olvides usar Higlight al colocar código MySQL, espero que mi intromisión sirva de ayuda...

.