PHP - QUE PASA CON LAS RESTRICCIONES!!!

 
Vista:

QUE PASA CON LAS RESTRICCIONES!!!

Publicado por ifer (22 intervenciones) el 27/12/2004 16:29:06
Vaya! esto si es increibles, uso mySql 1.0 para winNT (donde hago mis pruebas)

hice lo siguiente:
CREATE TABLE AUTOR(IDAUTOR INT AUTO_INCREMENT PRIMARY KEY, NOMBRE CHAR(10))
CREATE TABLE LIBRO(NOMBRE CHAR(10), IDAUTOR INT REFRENCES AUTOR(IDAUTOR))

Como veis, la tabla "libro" siempre debe tener un autor, pero bajo sospecha
hice esto:
INSERT INTO LIBRO('QUIJOTE',1);
y me lo acepto! es increible, includo use CONSTRAINT .... FOREIGN KEY ...
y nada, sigue teniendo el mismo error, que sucede?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder