0
I have a file .csv which contains in columns (vertically):
- Product.1 (line1)
- Product.2 (Linha2)
But when I do this query:
use test;
LOAD DATA LOCAL INFILE 'local' INTO TABLE tabela1;
Always give me a warning that the kind of attribute of tabela1
is whole.
I have the tabela1
defined with only one attribute - product but every time I type varchar
it changes to the whole how I wrote the file? And which options I choose? primary key
, null
?
put the error technical message there for me to analyze... Even giving the Warning Does it import the file or reject the import? Remember that Warning (warning) is different from error and in theory does not prevent the execution of the command.
– Paulo Roberto
@Pauloroberto already got it!
– rrr
use test; LOAD LOCAL DATA INFILE'local 'INTO TABLE Tabela1 Fields terminated by ';' Lines terminated by ' r'; ;
– rrr
my congratulations this evolving fast, put the answer there of how you managed to solve the problem, ie answer your own question in detail so that other people also learn.
– Paulo Roberto