Ola Pessoal,
Preciso da ajuda de voces pra saber como é o select que o "psql" faz
para buscar as informacoes abaixo quando um /d é executado no psql 8.4:
Restrições de chave estrangeira:
"login_logclioid_fkey" FOREIGN KEY (logclioid) REFERENCES
cliente(clioid) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED
"login_loggeroid_fkey" FOREIGN KEY (loggeroid) REFERENCES
gerenciadora(geroid) ON DELETE CASCADE
"login_logtploid_fkey" FOREIGN KEY (logtploid) REFERENCES
tipo_login(tploid)
Referenced by:
TABLE "alertavelocidade" CONSTRAINT
"alertavelocidade_alvlogoid_fkey" FOREIGN KEY (alvlogoid) REFERENCES
login(logoid) ON DELETE CASCADE
TABLE "cerca" CONSTRAINT "cerca_cerlogoid_fkey" FOREIGN KEY
(cerlogoid) REFERENCES login(logoid) ON DELETE CASCADE
TABLE "login_veiculo" CONSTRAINT "login_veiculo_logvlogoid_fkey"
FOREIGN KEY (logvlogoid) REFERENCES login(logoid) ON DELETE CASCADE
Alguem poderia me ajudar? Principalmente a parte do "Referenced by".
Eu preciso descobrir no banco tadas as tabelas que tem uma
referencia de uma determinada tabela.
Obrigado.
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral