Rodrigo Lang escreveu:
> Mateus, acho que o comando "DROP TABLE public.car CASCADE;" resolva seu 
> problema...
> 
> 
> 
> Ats,
> Rodrigo Lang.
> 
> 2009/12/4 mateusgra <mateusgra-I4oVjbygTnVfyO9Q7EP/[email protected] 
> <mailto:mateusgra-I4oVjbygTnVfyO9Q7EP/[email protected]>>
> 
> 
>     DROP TABLE public.car;
>     ERROR:  "con_pkey" is an index
> 
>     A tabela car tem uma fk para tabela con. Ja tentei deletar a fk
>     primeiro tb
>     deu o mesmo erro.
> 
> 
>     --
>     View this message in context:
>     http://old.nabble.com/Erro-Drop-table-tp26635867p26635867.html
>     Sent from the PostgreSQL - Brasil mailing list archive at Nabble.com.
> 
>     _______________________________________________
>     pgbr-geral mailing list
>     pgbr-geral-b/[email protected]
>     <mailto:pgbr-geral-b/[email protected]>
>     https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
> 
> 
> 
> 
> -- 
> Rodrigo F. Lang
> Amd. de Redes em Telecom
> http://langtechnologies.blogspot.com/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> pgbr-geral mailing list
> pgbr-geral-b/[email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Ja tentei o cascade.
E agora tentei remover a CONSTRAINT: ALTER TABLE car DROP CONSTRAINT 
fk_car_con o erro continua.


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

Responder a