How do you query all columns and all tables for a specific string
2013-04-19 17:34
477 查看
Re: How do you query all columns and all tables for a specific string
From: | Jasen Betts <jasen(at)xnet(dot)co(dot)nz> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: How do you query all columns and all tables for a specific string |
Date: | 2010-03-23 08:46:37 |
Message-ID: | ho9v5d$1ra$1@reversiblemaps.ath.cx (view raw or flat) |
Thread: | 2010-03-22 16:02:12 from Ryan Garvey <ryan(dot)garvey1(at)gmail(dot)com> 2010-03-23 06:04:04 from "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com> 2010-03-23 08:46:37 from Jasen Betts <jasen(at)xnet(dot)co(dot)nz> 2010-03-23 08:46:37 from Jasen Betts <jasen(at)xnet(dot)co(dot)nz> |
Lists: | pgsql-novice |
On 2010-03-22, Ryan Garvey <ryan(dot)garvey1(at)gmail(dot)com> wrote: > --001517448026efc884048265d16b > Content-Type: text/plain; charset=ISO-8859-1 > > I recently inhereted a database that I know nothing about that has hundreds > of tables most of which have meaningless names, or at least to me. I am > trying to find a table and column that holds a specific serial number. I > have no idea what table or what column it would be stored in. Is it possible > to search the entire database? you could scan a dump of the for the serial number you want and work back from there. eg: assuming the serial you want is '1234237854' pg_dump databasename | egrep '^COPY|1234237854' | grep -B1 '1234237854'
相关文章推荐
- How do I set the timeout for a JAX-WS webservice client? if you want to set timeouts for specific se
- 你要相信你所做的一切对一个更美好的世界 Do have faith in what you are doing All for a better world
- HOW DO YOU DO: CREATE AD USER AND ADD THIS INTO GROUP
- How do I choose grid and block dimensions for CUDA kernels?
- [转] How to change font settings for all UI elements (toolbar and context menus, property editors, etc.)
- how to query for a list<String> in jdbctemplate?--转载
- How do I remove all partitions, data and create clean empty hard disk under Linux operating systems?
- How do I utilise all the cores for nmake?
- ChipScope - For the ChipScope flows, how do you get the signal names into the Analyzer without manually adding them?
- How do I download and install Java for my Linux computer?
- What is Logical Volume Management and How Do You Enable It in Ubuntu?
- How do you define a copy constructor or assignment operator for a class that contains a pointer to a (abstract) base class?
- How Do you Motivate Yourself and Stay Focused?
- How do you manage time and prioritise tasks
- SQL Server script to rebuild all indexes for all tables and all databases
- How do you search for files containing dos line endings (CRLF) with grep on Linux?
- disable-the-loopback-check-for-specific-host-names-on-all-sharepoint-web-and-application-servers/
- How do I choose grid and block dimensions for CUDA kernels?
- C#: how do I list all System defined Exceptions and pick up what I need
- How-to: use spark to suport query across mysql tables and hbase tables