postgresql - Key ... is not present in table ... but it's. (Copy Postgres) -
when try:
copy qe_direito_incidencia 'c:\\temp\\direito_incidencia_04-04-17.txt' delimiter e'\t' null ''; i have error:
error: insert or update on table "qe_direito_incidencia" violates foreign key constraint "qe_direito_incidencia_cod_empresa_fkey" sql state: 23503 detail: key (cod_empresa, cod_direito)=(1, 78) not present in table "qe_direito".
but have record in 2 tables, qe_direito , qe_direito_incidencia.
any idea?
thanks!
i've solved. needed change export excel csv. when try export txt, doesn't work , report error above.
Comments
Post a Comment