Jump to content
Fórum Script Brasil
  • 0

(Resolvido) Erro #1064


Luckxander

Question

Alguém pode me ajudar com o problema abaixo:

Tabela:

status_diario

Colunas:

cod => int(11) primary key (auto increment)

status=> varchar(60)

release=> varchar(12)

Query:

insert into status_diario (status, release) values ('Atualizando','NOV11')

Erro:

#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 'release) values ('Atualizando','NOV11')' at line 1

Testei diretamente no banco e deu a mensagem de erro acima.

Edited by Denis Courcy
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
...Tabela:

status_diario

Colunas:

cod => int(11) primary key (auto increment)

status=> varchar(60)

release=> varchar(12)

Query:

insert into status_diario (status, release) values ('Atualizando','NOV11')

Erro:

#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 'release) values ('Atualizando','NOV11')' at line 1

Status e release são palavras reservadas do MySQL. Para usá-las como nomes de tabelas e ou atributos você deve escrevê-las entre crases.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652.1k
×
×
  • Create New...