Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/04/2006, 10:34
Avatar de deadlykyo
deadlykyo
 
Fecha de Ingreso: noviembre-2005
Ubicación: Cbba - Bolivia
Mensajes: 747
Antigüedad: 20 años, 10 meses
Puntos: 5
Si quieres crear tablas normales pero sin control de llaves foraneas con otras tablas puedes usar MyIsam, si quieres tener el control de integridad referencial (llaves foraneas), puedes usar InnoDB:
Código PHP:
//
CREATE TABLE `socios` (
`
id` tinyint(4) NOT NULL auto_increment,
`
nombreusuario` tinytext NOT NULL,
`
email` tinytext NOT NULL,
`
password` varchar(15) NOT NULL,
`
reppass` varchar(15) NOT NULL,
`
nombre` tinytext NOT NULL,
PRIMARY KEY (`id`)
) 
ENGINE=MyISAM DEFAULT CHARSET=latin1;

CREATE TABLE `socios` (
`
id` tinyint(4) NOT NULL auto_increment,
`
nombreusuario` tinytext NOT NULL,
`
email` tinytext NOT NULL,
`
password` varchar(15) NOT NULL,
`
reppass` varchar(15) NOT NULL,
`
nombre` tinytext NOT NULL,
PRIMARY KEY (`id`)
) 
TYPE=InnoDB DEFAULT CHARSET=latin1; 
ahi te dejo como cambiaria tu tabla con MyIsam y otra con InnoDB, por cierto puedes usar ENGINE o TYPE indistintamente, suerte, cya
__________________
"El Conocimiento es de todos, no solo de algunos"