problemas con una tabla
Publicado por naxalite (1 intervención) el 21/05/2007 18:38:21
Hola buenas tardes, resulta k estoy haciendo una aplicacion y al insertar una tabla determinada en phpmyadmin me da el error. Esta es la tabla y el error correspondiente:
CREATE TABLE FACTURA (baseimponible float,
fechafactura date,
fechaentrada date NOT NULL,
pagada date,
tipoiva enum,
nfactura varchar,
estado text,
nexpedicion int,
idfactura int NOT NULL,
idproveedor int NOT NULL,
suministra_estado text
);
ALTER TABLE FACTURA ADD PRIMARY KEY (idfactura);
MySQL ha dicho: Documentación
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
nfactura varchar,
estado text,
nexpedicion int,
' at line 5
Haber si me podeis ayudar, muchas gracias.
CREATE TABLE FACTURA (baseimponible float,
fechafactura date,
fechaentrada date NOT NULL,
pagada date,
tipoiva enum,
nfactura varchar,
estado text,
nexpedicion int,
idfactura int NOT NULL,
idproveedor int NOT NULL,
suministra_estado text
);
ALTER TABLE FACTURA ADD PRIMARY KEY (idfactura);
MySQL ha dicho: Documentación
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
nfactura varchar,
estado text,
nexpedicion int,
' at line 5
Haber si me podeis ayudar, muchas gracias.
Valora esta pregunta


0