1

I'm trying to import a database and I have a mistake which says that I have a mistake near the last 1, where is my mistake?, I don't find it. Could you please help me?.

CREATE TABLE cluw.envios_service_desk (
id_envio_sd int(10) NOT NULL,
id_cuenta int(10),
id_usuario int(10),
enviado enum(1),
f_envio datetime,
tipo_envio enum(1),
PRIMARY KEY (id_envio_sd)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1
  • If it is always set to be 1, why bother? Commented Sep 9, 2012 at 0:48

1 Answer 1

2

enum deals with strings only

to fix it just add small quotes around them like this

CREATE TABLE cluw.envios_service_desk (
id_envio_sd int(10) NOT NULL,
id_cuenta int(10),
id_usuario int(10),
enviado enum('1'),
f_envio datetime,
tipo_envio enum('1'),
PRIMARY KEY (id_envio_sd)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.