Tema: Error MySQL
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/01/2007, 14:47
Avatar de mico
mico
 
Fecha de Ingreso: octubre-2003
Ubicación: Madrid
Mensajes: 47
Antigüedad: 20 años, 6 meses
Puntos: 0
Error MySQL

Hola

Me he animado a empezar con MySQL, al crear la siguiente tabla me sale un error:

Código:
mysql> create table sales-rep(
    -> employee-number INT,
    -> surname VARCHAR(40),
    -> first-name VARCHAR(30),
    -> comission TINYINT);
ERROR 1064 (42000): 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 '-rep(

employee-number INT,
surname VARCHAR(40),
first-name VARCHAR(30),
comissio' at line 1
Sabeis por que?
Gracias.
__________________
Saludos.