要查詢外鍵所在的表,可以使用以下SQL查詢語句:
```sql
SELECT
UC.CONSTRAINT_NAME AS FOREIGN_KEY_NAME,
UC.TABLE_NAME AS CHILD_TABLE,
UCC.COLUMN_NAME AS CHILD_COLUMN,
UR.TABLE_NAME AS PARENT_TABLE,
UCR.COLUMN_NAME AS PARENT_COLUMN
FROM
USER_CONSTRAINTS UC
JOIN
USER_CONS_COLUMNS UCC ON UC.CONSTRAINT_NAME = UCC.CONSTRAINT_NAME
JOIN
USER_CONSTRAINTS UR ON UC.R_CONSTRAINT_NAME = UR.CONSTRAINT_NAME
JOIN
USER_CONS_COLUMNS UCR ON UR.CONSTRAINT_NAME = UCR.CONSTRAINT_NAME
WHERE
UC.CONSTRAINT_TYPE = 'R'
AND UC.TABLE_NAME = 'YOUR_TABLE_NAME';
```
在這個查詢中,將會列出指定表中的外鍵約束的名稱,子表名,子表外鍵列名,父表名和父表外鍵列名。您可以將'YOUR_TABLE_NAME'替換為您想要查詢外鍵的表名。