The Software business

terça-feira, 7 de maio de 2013

How to get the details about any constraint in Oracle XE?


When you do some SQL statement in oracle, it throw an exception when your statement violate some constraint. But the error doesn't show about what table the constraint is related, showing just the constraint name.

To show the constraint details just execute the follow sql statement:

SELECT CONSTRAINT_NAME, TABLE_NAME FROM USER_CONSTRAINTS WHERE CONSTRAINT_NAME='FK1_MY_CONSTRAINT_NAME';

Postado por Unknown às 09:26
Enviar por e-mailPostar no blog!Compartilhar no XCompartilhar no FacebookCompartilhar com o Pinterest
Marcadores: oracle

Nenhum comentário:

Postar um comentário

Postagem mais recente Postagem mais antiga Página inicial
Assinar: Postar comentários (Atom)

Quem sou eu

Unknown
Ver meu perfil completo

Arquivo do blog

  • ►  2014 (1)
    • ►  janeiro (1)
  • ▼  2013 (8)
    • ►  julho (5)
    • ▼  maio (2)
      • Design is more about words than images?
      • How to get the details about any constraint in Ora...
    • ►  fevereiro (1)
  • ►  2012 (5)
    • ►  setembro (1)
    • ►  maio (1)
    • ►  abril (1)
    • ►  março (1)
    • ►  janeiro (1)
  • ►  2011 (9)
    • ►  novembro (9)
Tema Simples. Tecnologia do Blogger.