SELECT *
FROM (SELECT 'DB' defineby,
all_tab_columns.table_name,
all_tab_columns.column_name,
all_tab_columns.data_type,
all_tab_columns.data_length
FROM all_tab_columns,
all_tables
WHERE all_tab_columns.owner = all_tables.owner
AND all_tab_columns.table_name = all_tables.table_name
AND column_name = 'PO_HEADER_ID'
UNION ALL
SELECT 'EBS',
tab.table_name,
col.column_name,
col.column_type,
col.width
FROM fnd_tables tab,
fnd_columns col
WHERE tab.table_id = col.table_id
AND (col.column_name = 'PO_HEADER_ID' OR
col.user_column_name = 'PO_HEADER_ID'))
WHERE table_name LIKE '%PO_HEADERS_ALL%'
沒有留言:
張貼留言