Next Question
RSS
If you have Excel handy, you could copy and paste a bunch of select statements together for each of the tables.
For example, say in row 1, you have column A have the Table name, and column B the field name.
Column C you could have a formula something like:
="SELECT " && B1 && " FROM " && A1 "
Then copy this formula so that it appears down the line in column C for the rest of the entries.
Copy those into a PostGres command session (I don't think you could do this via SQLManager, you might need to do this manually).
Failing that, hopefully someone will answer with fresher knowledge of PostGres, or maybe someone who could suggest building some PHP or Perl script which could do something similar.
Permalink | Report
Answered Question
January 05, 2009 07:21 PM
Is there a way to search an entire database?
I am running PostGres SQL 8.2, using SQLManager Lite to view the DB.
Is there a function or query to write that will search the entire database for a text string (inside a column)? There are about 50 tables and going through them manually would be a nightmare.
Is there a function or query to write that will search the entire database for a text string (inside a column)? There are about 50 tables and going through them manually would be a nightmare.
Interesting Question?
Yes (0)
No (0)
- In Technology & Internet |
- |
- Report |
-
Share
RSS
Best Answer Chosen by Asker
| January 05, 2009 08:01 PM |
For example, say in row 1, you have column A have the Table name, and column B the field name.
Column C you could have a formula something like:
="SELECT " && B1 && " FROM " && A1 "
Then copy this formula so that it appears down the line in column C for the rest of the entries.
Copy those into a PostGres command session (I don't think you could do this via SQLManager, you might need to do this manually).
Failing that, hopefully someone will answer with fresher knowledge of PostGres, or maybe someone who could suggest building some PHP or Perl script which could do something similar.
Permalink | Report
Other Answers (2)
Answer this Question
Related Questions
Ask a Question
Buy Mahalo Dollars with Credit Card or PayPal
Top Members
Most Popular Tags
Categories
- Anonymous
- Arts & Design
- Beauty & Style
- Books & Authors
- Business
- Cars & Transportation
- Consumer Electronics
- Coupons Deals
- Education
- Entertainment
- Environment
- Fitness
- Food & Drink
- From Email
- From Iphone
- From Twitter
- Health
- History
- Hobbies
- Home & Garden
- How Tos
- Humor
- Jobs
- Legal
- Local
- Love & Relationships
- Mahalo Answers Community
- Money
- Music
- News
- NSFW
- Parenting
- Pets
- Science & Mathematics
- Services
- Shopping
- Social Science
- Society & Culture
- Sports
- Technology & Internet
- Travel
- Video Games
Welcome New Members
- anpro21, December 01, 2009 05:57 PM
- primodebt, December 01, 2009 05:52 PM
- spypress, December 01, 2009 05:50 PM
- toothjoe, December 01, 2009 05:36 PM
- moniquemontano, December 01, 2009 05:35 PM
Mahalo Dollars are the currency of Mahalo Answers.
Each Mahalo Dollar costs $1.
Once you earn more than 40 Mahalo Dollars, you can request to be paid via PayPal. Each Mahalo Dollar is currently worth $0.75 when paid out via PayPal. Learn More