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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching for a particular column in a db - Q?

Status
Not open for further replies.

jcf27

IS-IT--Management
Aug 24, 2002
21
0
0
US
Greetings,

I need some help searching for column names.

I'm working with a 500+ table db. How do I go about finding in which table(s) a particular column appears? For example: list all the tables that contain column "first_name".

Thanks in advance!

J
 
Code:
select * 
  from information_schema.columns
 where column_name = 'FIRST_NAME'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top