📅  最后修改于: 2022-03-11 15:05:20.680000             🧑  作者: Mango
-- NB: Applicable for Oracle and PL/SQL only
select *
from all_tab_cols A
where
A.COLUMN_NAME in
(
select B.column_name
from all_tab_cols B
where B.table_name = 'YourFirstTable'
)
and A.table_name != 'YourFirstTable'
and A.TABLE_NAME = 'YourSecondTable';