RE: [PHP-ES] help con alter table de mysql

From: Date: Wed, 25 Jun 2003 15:13:52 +0000
Subject: RE: [PHP-ES] help con alter table de mysql
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-37800@lists.php.net to get a copy of this message
Tenés que especificar la longitud del varchar, por ejemplo, varchar(50), para 50 caracteres como máximo. == Marcelo Hernán Ruiz -----Original Message----- From: Eduardo Garcia [mailto:enzo@enzolutions.com] Sent: Miércoles, 25 de Junio de 2003 12:59 p.m. To: lista@phpes.com 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 espaqol: http://www.php.net/manual/es/ Para dar de baja la suscripcisn, mande un mensaje a: lista-unsubscribe@phpes.com

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