Bem estou tentando inserir dados em uma tabela através de um txt, só que está dando a menssagem de o o valor de inserção não é compatível, a minha tabela é essa.
DATA,ID_CLASSE,ID_BRICKS,ID_PRODUTO,VENDA_EM_VALOR,ID_EMPRESAS
O meu campo VENDA_EM_VALOR é um float, então quando peguei os dados do txt assim float VAL24 = rs.getFloat(“VALOR24”) ai mandei inserir.
“insert into DDD_FATO2_TESTE(DATA,ID_CLASSE,ID_BRICKS,ID_PRODUTO,VENDA_EM_VALOR,ID_EMPRESAS) VALUES(’”+meses[0]+"’,’"+CLASSE+"’,’"+BRICK+"’,’"+PRODUTO+"’,’"+VAL24+"’,’"+LAB+"’)";
Deu essa menssagem:
"A value is not compatible with the data type of its assignment target. Target name is “VENDA_EM_VALOR”. SQLSTATE=42821
A mesma coisa aconteceu para DOUBLE, só funcionou com VARCHAR!!
