Criação de Tabela
Boa tarde,
Estou tentando criar uma tabela com essa estrutura aqui:
<div class='codetop'>CODE</div><div class='codemain' style='height:300px;white-space:pre;overflow-y:auto'>CREATE TABLE subscript (
id_newsletter tinyint(3) NOT NULL default '0',
email_varchar(50) NOT NULL,
tipo ENUM('texto','html','zip','word') NOT NULL DEFAULT 'texto',
PRIMARY KEY (id_newsletter)
);</div>
E está me dando esse erro:
<div class='codetop'>CODE</div><div class='codemain' style='height:300px;white-space:pre;overflow-y:auto'>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 '(50) NOT NULL,
tipo ENUM('texto','html','zip','word') NOT NULL DEFAULT 'texto',' at line 3</div>
Alguém pode me ajudar?
Valeu e fiquem na paz.
Discussão (1)
Carregando comentários...