Foro de elhacker.net

Programación => PHP => Mensaje iniciado por: jelsir en 1 Mayo 2014, 07:42 am



Título: error al crear tablas
Publicado por: jelsir en 1 Mayo 2014, 07:42 am
Hola buenas noches tengo el siguiente problema al crear mis tablas en phpmyadmmin espero que me puedan ayudar... gracias
Código
  1. CREATE TABLE `abonos` (
  2.  
  3. `mov_id` int( 10 ) NOT NULL AUTO_INCREMENT ,
  4. `abono_modelo` varchar( 30 ) NOT NULL ,
  5. `abono_valor` varchar( 30 ) NOT NULL ,
  6. `abono_serial` varchar( 30 ) NOT NULL ,
  7. `abono_fecha` datetime NOT NULL ,
  8. `abono_cliente` varchar( 40 ) NOT NULL ,
  9. PRIMARY KEY ( `mov_id` )
  10. ) ENGINE = MYISAM AUTO_INCREMENT =7 DEFAULT CHARSET = utf8;
  11.  
  12.  
  13.  
  14. MySQL ha dicho: Documentación
  15. #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 'compu
  16.  
  17. CREATE TABLE `abonos` (
  18.   `mov_id` int(10) NOT NULL auto_increment' at line 1
  19.  


Título: Re: error al crear tablas
Publicado por: engel lex en 1 Mayo 2014, 08:03 am
ese create table me corre perfecto, no habrás tenido algo antes de eso sin cerrar? que version de mysql tienes?


Título: Re: error al crear tablas
Publicado por: jelsir en 1 Mayo 2014, 08:27 am
ese create table me corre perfecto, no habrás tenido algo antes de eso sin cerrar? que version de mysql tienes?

 phpMyAdmin Database Manager Version 2.10.3
 PHP Information Version 5.2.6
 

About AppServ Version 2.5.10 for Windows
 AppServ is a merging open source software installer package for Windows includes :


• Apache Web Server Version 2.2.8

•PHP Script Language Version 5.2.6

•MySQL Database Version 5.0.51b

•phpMyAdmin Database Manager Version  2.10.3


Título: Re: error al crear tablas
Publicado por: engel lex en 1 Mayo 2014, 08:51 am
no veo el error... el mysql tampoco es tan viejo como para rechazar ese comando...

puedes asegurarte de copiar este error completo

Citar
#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 'compu

veo que dice "compu" pero en tu tabla no tienes nada de ese nombre