Tens que converter ou colocar entre aspas o valor númerico. A virgula para ele 
é mais um expressão!
> Em 09/01/2015, à(s) 11:52, Luiz Rafael Culik <[email protected]> escreveu:
> 
> Buenas
> 
> Acho que o problema e seu valor numerico, ele esta usando , em vez de .
> 
> []s
> Luiz
> 
> Em 9 de janeiro de 2015 11:45, Paulo Afonso Pereira 
> <[email protected] <mailto:[email protected]>> escreveu:
> Olá Pessoal,
> 
> Estou estranhando este erro. Não consegui achar o problema.
> 
> Os dados estão vindo de um XML de retorno do banco.
> 
> Não sei se é algum tipo de dado estranho, causando isso.
> 
>  
> 
> CREATE TABLE tabela_ofx
> 
> (
> 
>   idreg serial NOT NULL,
> 
>   datalan date NOT NULL,
> 
>   valorlan numeric(18,2),
> 
>   trancrdr character varying(10),
> 
>   tranidbc character varying(10),
> 
>   checknum character varying(20),
> 
>   refnum character varying(20),
> 
>   tramemo character varying(200),
> 
>   CONSTRAINT pk_idreg PRIMARY KEY (idreg )
> 
> );
> 
>  
> 
> INSERT INTO tabela_ofx
> 
> (datalan, valorlan, trancrdr, tranidbc, checknum, refnum, tramemo)
> 
> VALUES
> 
> ('2015-01-07', 533,57, 'CREDIT', 'N10043', '1911127', '', 'RESGATE DE 
> PAPEIS');
> 
>  
> 
> ERRO:  INSERT tem mais expressões do que colunas alvo
> 
> LINE 4: ...1-07', 533,57, 'CREDIT', 'N10043', '1911127', '', 'RESGATE D...
> 
> ********** Error **********
> 
> ERRO: INSERT tem mais expressões do que colunas alvo
> 
> SQL state: 42601
> 
> Character: 159
> 
>  
> 
> ALGUMA DICA ?
> 
>  
> 
> Obrigado,
> 
> Paulo.
> 
>  
> 
>  
> 
> 
> 
>   <http://www.avast.com/>     
> Este email foi escaneado pelo Avast antivírus. 
> www.avast.com <http://www.avast.com/>
> 
> _______________________________________________
> pgbr-geral mailing list
> [email protected] 
> <mailto:[email protected]>
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral 
> <https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral>
> 
> 
> _______________________________________________
> pgbr-geral mailing list
> [email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a