Questions tagged «database-metadata»


15
外键列表及其引用的表
我试图找到一个查询,该查询将为我返回表的外键以及它们引用的表和列的列表。我在那边 SELECT a.table_name, a.column_name, a.constraint_name, c.owner FROM ALL_CONS_COLUMNS A, ALL_CONSTRAINTS C where A.CONSTRAINT_NAME = C.CONSTRAINT_NAME and a.table_name=:TableName and C.CONSTRAINT_TYPE = 'R' 但是我仍然需要知道该键引用了哪个表和主键。我将如何获得?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.