Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking Column Existence in all the Tables of Database

Status
Not open for further replies.

ksr

MIS
Jul 3, 2001
11
IN
Is it possible with a single SQL Statement to know the names of all the tables having column "MemberID" and check the existence of "MemberId - 2365NRM" is all the scanned tables.
 
This is not possible with single statement, but you may write quite simple pl/sql procedure looping throu the list of those tables (query from USER_TAB_COLUMNS) and making dynamic requests (using REF CURSOR or EXECUTE IMMEDIATE).

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top