Jump to content
Fórum Script Brasil

Question

Pessoal,

 

Alguém pode me dar uma ajuda?

Estou começando agora com o mysql, estudando por conta própria, e está dando o erro abaixo

 

10:41:06 create table pessoas( id int not null auto_increment nome varchar(30) not null, nascimento date, sexo enum ('M' , 'F'), peso decimal (5,2), altura decimal (3,2), nacionalidade varchar (20) default 'Brasil', primary key (id) )default charset = utf8 Error Code: 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 'nome varchar(30) not null, nascimento date, sexo enum ('M' , 'F'), peso decimal ' at line 3 0.000 sec
 

 

4.JPG

Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      148716
    • Total Posts
      644534
×
×
  • Create New...