🔒 Locked
oracle question
Advertisement
Original Post
You can find the existing tables/columns in all_tab_columns.
http://en.wikipedia.org/wiki/Oracle_metadata#Example_2:_finding_columns
Then, for each of the column which is of the interesting type, you select everything that looks like your string.
I hope for you that this is a one-time need, and that your base is small :)
Good luck !
http://en.wikipedia.org/wiki/Oracle_metadata#Example_2:_finding_columns
Then, for each of the column which is of the interesting type, you select everything that looks like your string.
I hope for you that this is a one-time need, and that your base is small :)
Good luck !
Quote:
Original post by ncsu121978
maybe you misunderstood.....
i want to know the table_name and column_name that contains the given string or pattern. this could be multiple places in the database that will contain this string and i want to know all the locations.
So, let me get this straight.
You have a number of tables, table1..tablen
Each has a number of columns, column1..columnn
You want to find a string. It will exist as a row in a table, in a column. But you don't know which table and column.
Is this accurate?
What you want is full-text indexing, I believe. Kind of like how google works or Windows Desktop Search or something like that. If you're using Java there's Lucene, or if you're using .NET, theres, um, Lucene.NET. I don't believe Oracle has full-text indexing built in, but maybe they do (SQL Server does, for example)
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement