Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/07/2009, 07:42
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: Como activo InnoDB en MySQL, como se lo uso

1.
Cita:
CREATE TABLE parent(
id INT NOT NULL,
PRIMARY KEY (id)
) ENGINE=INNODB;

CREATE TABLE child(
id INT,
parent_id INT,
INDEX par_ind (parent_id),
FOREIGN KEY (parent_id)
REFERENCES parent(id)
ON DELETE CASCADE
) ENGINE=INNODB;
Tomado del manual de referencia de mysql.

2.
Código sql:
Ver original
  1. SHOW TABLE STATUS;

Un saludo
__________________
Without data, You are another person with an opinion.
W. Edwads Deming