-1

Suppose my database contains the following tables :

  • table_A with primary key PKA
  • table_B with foreign key FKA

Suppose also that I have no clue of the content of the database, except that it contains a table named table_A.

Here is my question : given table_A's name, what (PL/)SQL request do I have to make to the database to know that there is a table B that has a foreign key to table A ?

I'm using Oracle 11g

ypercubeᵀᴹ
  • 109,746
  • 18
  • 170
  • 231
Backslash36
  • 580
  • 1
  • 11
  • 26

2 Answers2

0

On Sql Server, you'd issue sp_help TableA

One of the result sets will let you know that TableA is referenced by TableB's foreign key.

Amy B
  • 105,294
  • 20
  • 131
  • 182
0

Hardy solved it ! Many thanks.

The answer lies in another topic, sorry for missing it.

Community
  • 1
  • 1
Backslash36
  • 580
  • 1
  • 11
  • 26