Re: Auto increment en MySQL

From: Date: Mon, 16 Jul 2001 13:08:37 +0000
Subject: Re: Auto increment en MySQL
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-12288@lists.php.net to get a copy of this message
no te entiendo bien ... ¿quieres crear una tabla desde un script PHP, o cuando la usas insertando filas desde un script PHP no te incrementa la columna ID ? saludos. ----- Original Message ----- From: "xavi" <berna@farmavet.com> To: "Llista PHPes" <lista@phpes.com> Sent: Monday, July 16, 2001 9:20 AM Subject: [PHP-ES] Auto increment en MySQL > Quiero crear una tabla desde PHP y que el campo ID sea autoincrementable, > he mirado como lo hace el MySQL y lo hace así: > > CREATE TABLE TABLA (id INT NOT NULL AUTO_INCREMENT, fecha CHAR (10), titulo > CHAR (255), texto TEXT ) > > Peró si lo pongo así en PHP no funciona, si quito el AUTO_INCREMENT si que > me crea al Tabla. > > ¿Cuál puede ser el error? > > > --------------------------------------------------------------------- > Archivo On-line: http://www.phpes.com/ > Manual PHP en español: http://www.php.net/manual/es/ > Para dar de baja la suscripción, mande un mensaje a: > lista-unsubscribe@phpes.com >

« previous php.general.es (#12288) next »