We can search for text in a table?

Hi people,
I need to search for a text within a table.for ex, I need to find a word "ABEL" in a table.but I n don't know real field names in a table.without using DESC I should look for a string.that is that I should get the names of columns to runtime.for ex,'select * from emp where column_name as
'ABEL % %';
Here, this column_name value should be replaced by a select another statement.is it possible? can u suggest me? using oracle 9i.

Concerning
VIDS

If it's just for a table, probably quite simply, I would opt for something like

SQL> col search_word form a25
SQL> col column_name form a25
SQL> col text form a25

SQL> var search_word varchar2(50)

SQL> exec :search_word := 'al'
PL/SQL procedure successfully completed.

SQL> select  t.column_value.getrootelement() column_name,
        :search_word search_word,
        extractvalue(column_value, '*/text()') text
  from  table(xmlsequence(xmltype (
                              cursor (select   * from dept)
                           ).extract ('ROWSET/ROW/*'))) t
 where lower(extractvalue(column_value,'*/text()')) like '%' || lower(:search_word) ||'%'
/
COLUMN_NAME               SEARCH_WORD               TEXT
------------------------- ------------------------- -------------------------
LOC                       al                        DALLAS
DNAME                     al                        SALES                    

2 rows selected.

Tags: Database

Similar Questions

  • Help with a script to search for text in a table cell and apply the cell style

    Hello

    I build the script which Jongware wrote in his post here http://indesignsecrets.com/tackling-tables-through-scripting.php - I am trying to create a variable in which I can add a number of different parts of the text, in this case it's different parts of the United Kingdom i.e. 'London', 'East', 'Scotland' etc. I just need the script to apply the cell Style - 'District Cell' - to any cell that contains text in the variable. Here's the script, if anyone can help I would be grateful.

    function checkWhichTable()
    {
    // ensure the user made a selection
    if (app.selection.length != 1)
    return null;
    var currentTable = app.selection[0];
    if (currentTable.hasOwnProperty("baseline"))
    {
    currentTable = app.selection[0].parent;
    }
    while (currentTable instanceof Cell || currentTable instanceof Row || currentTable instanceof Column)
    currentTable = currentTable.parent;
    if (!(currentTable instanceof Table))
    {
    // No table selected
    return null;
    }
    return currentTable;
    }
    app.doScript(checkUserSelection, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Process Table");
    
    
    function checkUserSelection ()
    {
    var a_table = checkWhichTable();
    if (a_table == null)
    {
    if (confirm("No table selected. Do you want to process *all* tables?") == false)
    return;
    allTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
    for (aTable=0; aTable<allTables.length; aTable++)
    {
    processTable (allTables[aTable]);
    }
    } else
    {
    processTable (a_table);
    }
    }
    function processTable(table)
    {
    // do something here!
    
    
    //Find Text in Cell and apply Cell Style
    var textInCell=['London', 'Scotland', 'South West'];
    for (i=0; i<table.cells.length; i++)
    {
    if (table.cells[i].texts[0].contents==textInCell)
    table.cells[i].appliedCellStyle = "District Cell";
    }
    
    
    
    
    }
    

    Hello

    Change this feature:

    function processTable(table)
    {
    //Find Text (exactly as it is) in Cell and apply Cell Style
    var
      textInCell=['London', 'Scotland', 'South West'],
      mFound, cFound;
    
    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = "^(" + cities.join("|") + ")$";
    mFound = table.findGrep();
    while( cFound = mFound.pop() )
      cFound.parent.appliedCellStyle = "District Cell";
    }
    

    Jarek

  • Can I search for text in iframe?

    I do an exploration to see if I can display content SharePoint in IFrames. Success! I can view Word files saved as HTML pages and view it in IFrames.

    But then, I decided to see if I can identify keyboards in the IFrame to a search. Alas, my plan falls flat.

    I suspect that the answer is no, but I hope to be denied. Can I somehow search for text that appears in an IFrame?

    Hello

    The IFrame points to something included in the RoboHelp project or he is simply presenting something from outside the project?

    If the content within the IFrame is part of the project, research should be able to find terms in the document. But I think that if he says something of that RoboHelp don't is not yet aware, you would see questions.

    See you soon... Rick

  • Search for text when I start typing, I want to turn it off but it doesn'

    I discuss in shows from time to time and I find it annoying when every time I start typing the computer begins to search for text. I went to the options of firefox and it is not enabled but search for it. Can you suggest a way I can stop this from happening?

    Thank you

    Sherrie

    See:

  • Is it possible to search for text in an Illustrator file from an external source like the Finder (Mac)?

    I'm trying to find some similar text strings on hundreds of files.  Specifically, I'm looking for dimensions.  4.50 "for example.  I want to see how many files have this dimension within them so that I can group them for production purposes.

    Is there a way to search for text in Illustrator (I use CS5) files from Finder?  Or another program of research?  I use a Mac.

    Any help would be GREATLY appreciated and would help save me a lot of time.

    Yes. While the Finder cannot find the content of .ai files, it can do it with .pdf files. If you change the extension of a .ai in .pdf file, you can use Spotlight to search by content.

    This fact, combined with a file rename utility as A Better Finder Rename, you can leave temporarily rename all of your .ai files so they end up in something like 'RENAMED.pdf '. Then, once you have performed your search, find all files ending in RENAMED.pdf, to delete the word "RENAMED" and change the end for .ai again.

    Of course, this isn't something you want to get into the habit of doing.

  • Script to search for text and remove the hyperlink and characterstyle link which applies (back to normal)

    I need help with my script to search for text and remove the hyperlink and characterstyle link which applies (returns the normal text).

    I can't do either as I want.  I want the user to be able to type in a dialog text they want to search for, do search this text IGNORING case (case insensitive) and then for all instances that he find it, remove character styles that are applied to the (set to [none]) and delete the hyperlinks.

    My code seems to define the character style [None], when I click on the text and look at the window of character Styles, BUT all old styles (font color, underline) are always applied and removed not as I want.

    Also, I can't understand how to remove all of the old links.

    Here is my code:

    myDocument var = app.activeDocument;

    var noneStyle = myDocument.characterStyles.item ("[None]");

    var myFindVal = "";

    var myErrorText = "";

    var myErrorCount = 0;

    myDialog = app.dialogs.add var ({name: "search user submitted text and delete hyperlinks from objects found.", canCancel: true});

    {with (MyDialog)}

    {with (dialogColumns.Add ())}

    {with (borderPanels.Add ())}

    staticTexts.add ({staticLabel: "search and delete hyperlinks for :"}); "})

    myTextBox var = textEditboxes.add({minWidth:100});)

    }

    }

    }

    If (myDialog.show () == true) {}

    myFindVal = myTextBox.editContents;

    doSearchAndReplace();

    app.findTextPreferences = NothingEnum.nothing;

    app.changeTextPreferences = NothingEnum.nothing;

    If (myErrorCount == 0) {}

    Alert ("done! ("Part of the links have been removed for: '" + myFindVal + ""! "");

    }

    else {}

    Alert ("last error: '" + myErrorText + "' & number of errors:" + myErrorCount);

    }

    }

    myDialog.destroy ();

    function doSearchAndReplace() {}

    app.findTextPreferences.findWhat = myFindVal;

    app.findChangeTextOptions.caseSensitive = false;

    app.findChangeTextOptions.includeFootnotes = false;

    app.findChangeTextOptions.includeHiddenLayers = false;

    app.findChangeTextOptions.includeLockedLayersForFind = false;

    app.findChangeTextOptions.includeLockedStoriesForFind = false;

    app.findChangeTextOptions.includeMasterPages = false;

    app.findChangeTextOptions.wholeWord = false;

    var myFoundItems = myDocument.findText ();

    for (i = 0; i < myFoundItems.length; i ++) {}

    myRemoveHyperlinkAndStyle (myFoundItems [i]);

    }

    }

    function myRemoveHyperlinkAndStyle (myFoundItem) {}

    try {}

    myDocument.hyperlinkTextDestinations.item (myFoundItem) .remove ();

    myDocument.hyperlinkTextSources.item (myFoundItem) .remove ();

    myDocument.hyperlinkURLDestinations.item (myFoundItem) .remove ();

    myFoundItem.applyCharacterStyle (noneStyle);

    }

    {catch (MyError)}

    myErrorCount ++;

    myErrorText = MonErreur;

    }

    }

    Hello

    Right, some hyperlink might be a pageItem...

    expand the 'if' condition with:

    If (myHyp [len].source.hasOwnProperty ("sourceText") &... content ==...)

    Jarek

  • You can search for your personal library with Siri on the Apple TV and if so, how?

    You can search for your personal library with Siri on the Apple TV and if so, how?

    No, and it's a real shame...

  • Search for text in the option in Windows Search 4.0 Preview pane doesn't work do not

    I use XP SP3.  I recently downloaded Windows Search 4.0.

    When the Windows search results window opens, I noticed that it is possible to search for text in the preview pane.  I click on a file and go to OPTIONS > COMPONENT of VISUALIZATION, but see that FIND is grayed out and unavailable.

    This function worked before, when I loaded Windows Search first; now, it no longer works.  My files have been fully indexed; and I made no changes to the computer since then.  I tried to restart the computer, but there was no change.

    Any ideas? Matthew W. I. Dunn

    Hello Matthew w. I. Dunn, welcome.

    I recommend trying a system restore to see if that solves the problem. Try this:
    1. click on START
    2. click on "all programs".
    3. click on "Accessories".
    4. click on "system tools."
    5. click on "system restore."
    6 follow the prompts shown to restore your system to a date before the problem started. Although the system restore does not target the personal data, it is recommended that you back up all data such as music, photos and documents in case something is not bad.
    Let us know what happens
    Thank you!

    Ryan Thieman
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Search for text on a Web page in ModernUI IE10

    Is there a way to search for text on a Web page in the version of the modern UI for IE10?

    If you use modern IE, the shortcut must be identical to it in most web browsers:

    CTRL + F
    So, open IE, select a text field that opens the keyboard on the screen, then tap on and hold down the Ctrl key and press F release both. You should see a little extra box we pop that is your field of research to this page.
    Gives you what you're looking for?
  • Can I create a Web site using Muse where classmates can submit their projects photo and other students can search for these photos using keywords?

    Can I create a Web site using Muse where classmates can submit their projects photo and other students can search for these photos using keywords?

    You need a dynamic Server backend. You can't do it just with Muse. You can connect to one of the catalyst for business advanced accounts to implement these features or use widgets from third party services. Otherwise look you in systems such as Joomla, Typo3, Wordpress etc. and not even set up with muse.

    Mylenium

  • How to search for text in all of the PDF files on a mobile device?

    How to search for text in all of the PDF files on a mobile device?

    Not possible on mobile devices.

  • Acrobat XI can search for several words at a time?

    Every day I check a long list of words in a new and large file I'm sent. I tried to look up these words doing a single search query, but it seems that it's not possible. In the advanced search section I hace tried to do queries like word1 word2, nothing. Word1 AND word2, nothing. Word1 + word2, nothing. Nothing works. Can search for acrobat even more than one word at a time?

    Thanks for your comments.

    Kind regards.

    Jose.

    Of course, it is possible. In the advanced search window, press show more Options then select 'Match any of the words' under the heading "Return results containing" and enter your search terms separated by a space, like this:

  • You can search for specific classifications for elements of web application

    I was wondering if it is possible to have a search box with the drop-down menu, so that users can search for items to web application with specific classifications/categories?

    for example: search for 'all, info, resources, discussion' and users can choose one of these categories, then enter their search query in the search box and it will filter the answers with this category

    Hey Trina,.

    If you insert a search party app said are categories and other filters for custom filters and so on.

  • How can I change the color to search for text in firefox?

    When you press CTRL + F in Firefox to make appear the text search and you search for a Word, the word is highlighted in this neon-green color. Is there a way to change the color of this? The green color is barely visible.

    As I mentioned in my first post, you can right-click and choose New > String to create the entry.

  • Search for text on ORDDoc Oracle?

    Hello

    Is there a way I can index and search on a field of type ORDDoc? I tried to create a store of data type MULTI_COLUMN_DATASTORE and to add the ORDDoc column to the list of columns in the data store. With the help of CTX_DDL.create_preference (...) works, but when I try to create and add an index on a column of the table in question, it gives me only an error indicating that the column type is not supported.

    Is there a way I can index on such a column, so it can be searched by use of Oracle text? What I need is to search through the content of for example a pdf or doc file.

    Oh, one last question: is the docx format already available using Oracle (Oracle 10 g) text?

    Thanks in advance and best regards,
    Martin

    You can search a pdf or doc stored as a clob or using a file_datastore.

Maybe you are looking for