PostgreSQL - error al hacer un insert into select .....

 
Vista:

error al hacer un insert into select .....

Publicado por jeff (3 intervenciones) el 12/07/2006 00:51:28
Hola amigos del foro.
Resulta que tengo un

INSERT INTO tabla SELECT * from ..........

y me produce el siguiente error :

failed to find conversion function from "unknown" to character

ejecutando solo la parte del select, me presenta los datos perfectamente , pero al hacerle el insert me produce ese error.

La tabla la creo de la siguiente manera:

CREATE TABLE gcta_000 ( CODE_PRO char(2) NOT NULL, ORDE_BAL char(1) NULL, CODE_BAL varchar(26) NOT NULL, DETA_BAL char(42) NULL, NIVE_BAL char(2) NULL, DIRE_BAL char(26) NULL, NATU_BAL char(1) NULL, RESU_BAL char(1) NULL, CONT_BAL char(4) NULL, FUENTES char(1) NULL, SALDOANT numeric(19,2) NULL, DEBEPANT numeric(19,2) NULL, HABEPANT numeric(19,2) NULL, DEBEANTE numeric(19,2) NULL, HABEANTE numeric(19,2) NULL, TOTADEBE numeric(19,2) NULL, TOTAHABE numeric(19,2) NULL, BASEPER numeric(19,2) NULL, SALDEBE numeric(19,2) NULL, SALHABE numeric(19,2) NULL, MESANT numeric(19,2) NULL, MESACT numeric(19,2) NULL, ANOACT numeric(19,2) NULL, ANOANT numeric(19,2) NULL, MES01 numeric(19,2) NULL, MES02 numeric(19,2) NULL, MES03 numeric(19,2) NULL, MES04 numeric(19,2) NULL, MES05 numeric(19,2) NULL, MES06 numeric(19,2) NULL, MES07 numeric(19,2) NULL, MES08 numeric(19,2) NULL, MES09 numeric(19,2) NULL, MES10 numeric(19,2) NULL, MES11 numeric(19,2) NULL, MES12 numeric(19,2) NULL, SW_EJECU char(9) NULL, PRIMARY KEY(CODE_BAL))

ya esto mismo me ha funcionado en mysql,oracle y sqlserver pero en postgres no.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder