Jump to content

Erro ao criar tabela


aclips

Recommended Posts

Olá a todos  😁

Estou a tentar criar uma tabela numa base de dados utilizando o seguinte código: ?

Comando SQL:

CREATE TABLE modulos(

id bigint( 200 ) NOT NULL AUTO_INCREMENT ,

int_nome varchar( 255 ) NOT NULL default '',

sys varchar( 32 ) NOT NULL default '',

KEY char( 3 ) NOT NULL default '',

PRIMARY KEY ( id )

) TYPE = MYISAM

E está sempre a aparecer este erro: ?

Mensagens do MySQL : Documentação

#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 'char(3) NOT NULL default '',

  PRIMARY KEY  (id)

) TYPE=MyISAM' at line 5

Será que alguém aqui pode me ajudar nesta situação? :wallbash:

Obrigado

Aclips

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.