Re: help con alter table de mysql

From: Date: Wed, 25 Jun 2003 19:57:43 +0000
Subject: Re: help con alter table de mysql
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-37810@lists.php.net to get a copy of this message
EL ID AUTOICREMENTA NO PUEDE ACEPTAR NULOS
| id    | tinyint(4) |      | PRI | NULL       | auto_increment |
At 08:58 25/06/2003 -0700, you wrote:
Hola a todos estoy haciendo una miniapliacion para administrar mi website y quiero alterar una table pero la instruccion me falla y no veo el error la cosa esta asi. mysql> describe web_log; +-------+------------+------+-----+------------+----------------+
| Field | Type       | Null | Key | Default    | Extra          |
+-------+------------+------+-----+------------+----------------+
| id    | tinyint(4) |      | PRI | NULL       | auto_increment |
| type  | tinyint(4) |      |     | 0          |                |
| title | tinytext   |      |     |            |                |
| date  | date       |      |     | 0000-00-00 |                |
| text  | text       |      |     |            |                |
+-------+------------+------+-----+------------+----------------+ 5 rows in set (0.00 sec) mysql> ALTER TABLE web_log ADD COLUMN lang VARCHAR; ERROR 1064: You have an error in your SQL syntax near '' at line 1 alguien me podrias ayudar con esto. muchas gracias por adelantado. ---- enzo Eduardo Garcia http://www.enzolutions.com --------------------------------------------------------------------- Archivo On-line: http://www.phpes.com/
        via news: news://news.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 (#37810) next »