Jump to content

Recommended Posts

Posted

Da este erro:

1If column type is "enum" or "set", please enter the values using this format: 'a','b','c'...

If you ever need to put a backslash ("\") or a single quote ("'") amongst those values, precede it with a backslash (for example '\\xyz' or 'a\'b').

2For default values, please enter just a single value, without backslash escaping or quotes, using this format: a

Posted (edited)

Da este erro:

1If column type is "enum" or "set", please enter the values using this format: 'a','b','c'...

If you ever need to put a backslash ("\") or a single quote ("'") amongst those values, precede it with a backslash (for example '\\xyz' or 'a\'b').

2For default values, please enter just a single value, without backslash escaping or quotes, using this format: a

Esse não é o erro. O erro é algo +/- isto

MySQL said: #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 'INSERT INTO books.book(isbn10,isbn13,title,edition,author_f_name,author_m_na' at line 15

Já tentas-te criar a tabela diretamente no MySQL e não no phpMyAdmin?

Edited by Hugao
Posted

A estrutura, neste caso, são as colunas e as suas definições da tabela.

Por exemplo uma coluna para o id do parceiro, uma para o nome, outra para o site do parceiro e por ai fora. As colunas depende do que tu precisas

Posted

eu vou manter a query simples para não te confundires e vou adicionar uma coluna para o ID do parceiro, vai ser a chave primária


CREATE TABLE `bd_banco`.`ibwf_parceiros` (
 `id_parceiro` INT NOT NULL, 
'site' VARCHAR(255),
'referencia' VARCHAR(255),
'data' DATE,
'visitas' INT,
 PRIMARY KEY (`id_parceiro`));

Metes isso diretamente no MySQL para ver no que dá 😉

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.