Bueno estoy siguiendo un tutorial de noticias y kiero crear la tabla `noticias´ la he creado asi:
Cita: create table noticias (
id_noticia int(4) auto_increment not null,
autor varchar(255),
titulo varchar(255),
categoria varchar(255),
fecha datetime not null,
noticia blob, key(id_noticia)
)
Pero el apartado:
No se como ponerlo me podeis decir donde hay que poner eso por favor por que al crear me dice lo siguiente
Cita: #1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key
Haber si me podeis ayudar por cierto la version de la base de datos es MySQL 5.0