Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Sql query
Hi Roland,
select column_name from dba_tab_columns where table_name=TABLE 1
minus
select column_name from dba_tab_columns where table_name=TABLE 2
will give you the columns which are present in Table 1 but not in Table 2
Hope this Helps,
Regards,
Arslan Zaheer Dar
arslandar_at_skm.org.pk
Database Administrator
Shaukat Khanum Memorial Cancer Hosptial & Research Centre
www.shaukatkhanum.org.pk
-----Original Message-----
From: Roland.Skoldblom_at_ica.se [mailto:Roland.Skoldblom_at_ica.se]
Sent: Monday, January 21, 2002 1:55 PM
To: Multiple recipients of list ORACLE-L
Subject: Sql query
How can I write a select statement, which picks up a field in table1, that doesnt exist in table2.
Thanks in advance
Roland S
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: Roland.Skoldblom_at_ica.se
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Jan 21 2002 - 04:10:53 CST