Searching for % or _ in a title

i was running the following queries
select title from table where title like '%_%';
select title from table where title like '%%%';
and for some reason the result was the whole table.
How can i search for a title that contains either an underscore or a percentage in it whithout returning the whole table?
are these oracle special characters that we can't use?

Two options. If you are on 10g or above you can use regexp_like otherwise use the escape key word:
where txt_column like '%\%%' escape '\'  -- The choice of escape
   or txt_column like '%|_%' escape '|'  -- character is arbitrary
where regexp_like(text_column,'.*%.*') -- match %
   or regexp_like(text_column,'.*_.*') -- match _
   or regexp_like(text_column,'.*[%_].*') -- match both % or _
   or regexp_like(text_column,'.*[.*].*') -- match period . or *

Similar Messages

  • How can I search for a specific book in my library?

    I have many books on ibooks in many different categories. is there a way to search for a particular book by title or author?

    If you pull down the bookshelf you should get a search field show at the top of the screen

  • Search for exact match without additional words

    Hi everybody,
    is it possible to find out if a tag contains a certain word or phrase and nothing else? E.g. the search for all documents with the title "foo" should match all documents containing <title>foo</title> but not documents that contain something like <title>foo bar</title>. I tried something like "( foo ~ ( % ~ foo ) ) WITHIN title" but I get a "wildcard query expansion resulted in too many terms" error, so using a wildcard is no option here. Any ideas?

    Another method would be to use extractvalue to limit the rows. It would still use the text index to get the rows with foo in it, then extractvalue would limit it to just those rows where only the word foo is in it. This would eliminate the need for a procedure or user_datastore or increasing the index size. Please see the demonstration below.
    SCOTT@orcl_11gR2> create table documents
      2    (text  varchar2 (45))
      3  /
    Table created.
    SCOTT@orcl_11gR2> insert all
      2  into documents values ('<title>foo</title>')
      3  into documents values ('<title>foo bar</title>')
      4  into documents values ('<title>bar foo</title>')
      5  select * from dual
      6  /
    3 rows created.
    SCOTT@orcl_11gR2> insert into documents
      2  select '<title>' || object_name || '</title>'
      3  from   all_objects
      4  /
    76012 rows created.
    SCOTT@orcl_11gR2> create index test_idx
      2  on documents (text)
      3  indextype is ctxsys.context
      4  parameters
      5    ('section group ctxsys.auto_section_group')
      6  /
    Index created.
    SCOTT@orcl_11gR2> set autotrace on explain
    SCOTT@orcl_11gR2> select * from documents d
      2  where  contains (text, 'foo within title') > 0
      3  and    extractvalue (xmltype (d.text), '//title') = 'foo'
      4  /
    TEXT
    <title>foo</title>
    1 row selected.
    Execution Plan
    Plan hash value: 3102160860
    | Id  | Operation                   | Name      | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |           |     1 |    36 |    10   (0)| 00:00:01 |
    |*  1 |  TABLE ACCESS BY INDEX ROWID| DOCUMENTS |     1 |    36 |    10   (0)| 00:00:01 |
    |*  2 |   DOMAIN INDEX              | TEST_IDX  |       |       |     4   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter(EXTRACTVALUE("XMLTYPE"."XMLTYPE"("D"."TEXT"),'//title')='foo')
       2 - access("CTXSYS"."CONTAINS"("TEXT",'foo within title')>0)
    Note
       - dynamic sampling used for this statement (level=2)
    SCOTT@orcl_11gR2>

  • Finder: How 'Search' only for words in my doc TITLES, not inside docs?

    When in Finder, using 'Search' for keywords, I'm getting EVERY doc that has that word INSIDE the doc.
    Way too much information.
    Please.
    Usually I ONLY want to Search for that word in the doc TITLE.
    Can't i do this?
    Thanks for your help.

    You can also do this from the Spotlight menu bar search. Just use name: and then the word in the name you wish to search for, e.g.
    name:spotlight
    For other ways to tailor a query, see:
    http://www.macworld.com/article/132788/2008/04/spotlight2.html
    Regards.

  • How do I clear the "drop down menu" of past titles I have searched for?

    How do I clear the drop down menu of titles that have been searched for in the past? Example; If I type in a word such as craig, then craigslist appears in the drop down menu, how do I clear this?

    Use these steps to remove saved (form) data from a drop-down list:
    #click the (empty) input field on the web page to open the drop-down list
    #highlight an entry in the drop-down list
    #press the Delete key (on Mac: Shift+Delete) to remove it.
    *http://kb.mozillazine.org/Deleting_autocomplete_entries

  • HT1711 how do i search for a song by title

    How do I search I-tunes store for a song by the title?

    Correct, that is what he said.
    But if you tap the Store button in the top right corner of the Newstand app, iOS will do it for you and open the Store app to the Newstand apps, but there is no Search feature there. You find the Search feature on the Featured pane, as he said.

  • ITunes stops reacting after I try searching for a title. Why?

    Got the new version of iTunes today.
    It functions properly until I try searching for a certain title inside my media centre.
    Then it doesn't react at all.
    What's the problem?

    Let's try the following user tip with that one:
    iTunes for Windows 10.7.0.21: "iTunes has stopped working" error messages when playing videos, video podcasts, movies and TV shows

  • HT204266 Downloaded a movie through ITunes. Intended to use a redemption code. Only options were purchase or rent when searched for the title. Choose purchase, thinking that would prompt using the redemption code. Can I cancel that purchase?

    Movie obtained through search for title in ITunes. Intended to use redemption code. Only option was purchase or rent. Choose purchase, thinking it would prompt asking for the redemption code.  Instead, it downloaded the movie and charged my account. Can I cancel that order and have my account credited for that accidental purchase?

    Since this is an open forum, not Adobe support... you need to contact Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Search for songs without title or artist?

    Is there some way to search for a song when you don't know the title or artist but you know the words?
    Mac G5   Mac OS X (10.3.9)  

    You can't search the lyrics in iTunes neither with the Search in iTunes or a Smart Playlist.
    I would recommend trying Google with quotes around the text string that you remember of the song:
    "And I told her that we'd cross that bridge"
    Gives plenty of lyrics websites giving: "Burning Bridges" by Garth Brooks
    G5 bi-1.8Ghz   Mac OS X (10.4.7)   2.5Gb RAM - 2x 160Gb HD SATA - iPod 30Gb

  • Podcast doesn't show up on a search for the title or category.  Also, how do I check title, description, keywords, etc?

    I just put up a Podcast for our church.  Now I need to change the image and check the titles.  Also, when I search for The Village Presbyterian Church, Northbrook, IL nothing shows up.  And when I go into the Christianity section my podcast doesn't show.  It all works.  What should I do?

    Please post the iTunes Store URL for your podcast - this was given to you in the email you received when it was accepted, or you can go to the Store and control-click (Mac) or right-click (Windows) on the image (or where it should be) and copy the URL; please also post the feed URL.

  • HT5071 Why isn't my newly published book coming up when I search for it by title and by author on iTunes and iBooks?

    Why isn't my newly published book coming up when I search for it by title and by author on iTunes and iBooks?

    Thanks, but it turns out iTunes just needed another 24 hours. Now when I search in iTunes by my name or book title, it comes up!
    Do you happen to know why it doesn't list my name on itunes? It shows the title and then By (blank). Grr.
    bit.ly/1aveWcg

  • Search for Duplicates with different titles

    Some of us ill organized users have thousands and even tens of thousands of pictures scanned in from old albums, 35mm slides, and shoe boxes full of loose pictures. The result is many duplicates with different names. In Elements one could search on 'similar photos' or some such nomenclature and it did fairly good. How is it possible that an organizer in Photoshop Elements can have a superior tagging and search system to that in lightroom. I realize Lightroom does a lot more, but you have come so close to the good things in Elements why not include them in version 1.2?
    I asked about this in the forum and got some good answers, but basically told if I want to search on photo based color data, I need to use a program other than Adobe. Hope Adobe fixes that, it would be a great service to lots of us dis- or ill- organized people.
    I love Lightroom, but sure hope for some real improvements. Talk to your buddies in Elements.
    Jack

    here is one way to find all matches first and then you can add a fine search/separation if there is more than one match
    depending on the size of the sorted array it might be faster if you search for the first match and than look if the next still matches ...
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
    Attachments:
    find all matches.vi ‏11 KB

  • Windows 8 hangs or freezes whenever search for anything

    Rebuild the Index
    Whenever you try to search for something in windows, its indexing which find the things quickly and brings that to you.If indexing is disabled or corrupt computer won't be able to search and will not present the search results.Windows uses the index to perform very fast searches on your computer.
    The index requires almost no maintenance. However, if the index can't find a file that you know exists in an indexed location, you might need to rebuild the index. Rebuilding the index can take several hours, and searches might be incomplete until the index is fully rebuilt.
    Go to Control panel and open Indexing Options.
    Click the Advanced button at the bottom of the Indexing Options window. This displays a new window titled Advanced Options.
    Click the Index Settings tab if it isn’t selected already.
    Click the Rebuild button to delete and rebuild the file index.
    Click OK to confirm.
    For more information on Advance indexing option you can read article on microsoft's website http://windows.microsoft.com/en-in/windows7/change​-advanced-indexing-options
    Step 2 will always fix this issue but just in case its not helpful try the next Step 3.
    3.Check the Registry Value
    Manual Fix 1 
    1. Press Windows Key + R to get the run dialogue box.
    2. Type "regedit.exe" in the box and hit enter.
    3. Using the box on the left, navigate to the following directory:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
    4. We need to change a registry called "Start_SearchFiles" to a value of 2. If you are like me, yours is already 2. We need to reset this so what we are going to do it change it to 0, then back to 2.
    5. Double-click Start_SearchFiles or right-click and select "Modify" to get the edit box. Change the number under "Value data" to 0 then click "Ok".
    6. Repeat step 5, changing the value back to 2.
    7. Restart your computer.
    Manual Fix 2
    Using the above information navigate to the following directory: Read More on http://bookingtohosting.blogspot.com/2015/04/windo​ws-8-hangs-or-freezes-whenever.html

    Hi,
    Regarding current information we can't say that it related to this exe file.
    We need to use Clean boot mode and Safe mode to test the results:
    Please first restart the Windows in Clean boot and see if the issue still persists after reboot:
    How to perform a clean boot
    http://support.microsoft.com/kb/929135
    If the issue doesn’t appear, you can determine which one can be the cause by using dichotomy in MSconfig. Checking on half of Non-Microsoft service and restart, determining which half of the services cause the issue and repeating to check half of the problematic
    half services.
    If the issue still persists in Clean boot mode, please test in Safe mode.
    Let me know the results in Safe mode.
    If we cannot identify this issue in Clean boot and safe mode, please help to collect the boot trace and let's see what cause this issue:
    Windows Performance Toolkit: Simple Boot Logging
    http://www.autoitconsulting.com/site/performance/windows-performance-toolkit-simple-boot-logging/
    You can upload the etl file from this tool for our research.
    Kate Li
    TechNet Community Support

  • In Pages document, how do I search for word and view its frequency and page numbers in a sidebar?

    I have a long document and I want to be able to search for certain key words and phrases, and then see how many times they appear in the document and exactly where.  How do I conduct this sort of search and viewing?  In the past, in Pages and Word, I've been able to view my "finds" in a sidebar but I can't figure out how to activate that service anymore.
    Thanks!

    Here is a word frequency concordance Automator Service that works in both versions of Pages. It does not present a page number reference. It is by descending count, and alphabetically, within the repetitive counts as shown in the image here. In any document, you select the text to process, then Menu > Application Name > Services > Frequency. The Service will open TextEdit with the n-pages of scrollable results. It is 16 pt Helvetica Neue for legibility.
    Here is the code:
    on run {input, parameters}
         try
              set mySelection to input as text
              set formatted_result to concordance(mySelection)
              if formatted_result is not null then
                   set textHeading to "Word Frequency List"
                   tell application "TextEdit"
                   activate
                         set NewDoc to make new document with properties {name:"Concordance"}
                         make new paragraph at beginning of text of NewDoc with data textHeading & return
                         make new paragraph at end of text of NewDoc with data formatted_result
                         tell text of NewDoc
                               set font to "Helvetica Neue"
                               set size to 16
                               set color of paragraph 1 to {0, 0, 65535}
                         end tell
                        end tell
              else
                        display dialog with title ¬
                         "No input selected" with icon stop ¬
                          giving up after 15
              end if
         on error errmsg number errnum
                    display alert ¬
                               "AppleScript Error" message errmsg & "[" & errnum & "]" as critical ¬
                                  giving up after 30
         end try
         return input
    end run
    on concordance(mySelection)
    -- Use Ruby to count word frequency and alphabetically sort words
        set rb to ¬
        "selected = String.new\nfreqs = Hash.new(0)\nselected = ARGV.join('  ').gsub(/[,.]/, \"\")\n
         words = selected.split(/[^\\w-]+/)\nwords.each { |word| freqs[word] += 1 }\n
         freqs_sorted = freqs.sort do |a,b|\n\t
         a.last == b.last ? a.first <=> b.first : b.last <=> a.last\nend\n
         freqs_sorted.each { |k,v| printf \"[ %8s ]          %s\", v, k }"
        do shell script "/usr/bin/ruby -e " & rb's quoted form & space & mySelection's quoted form
    end concordance
    Launch /Applications/Automator and choose New Document, then click the Service icon, and then select the Choose button.
    On the left, you will have a list of Libraries from which to choose workflow items. Find Library > Utilities. In the adjacent column, locate the Run Applescript workflow. Click on it, then drag and drop it in the large workflow window to your right.
    At the top, you can select Service receives text in any application. Leave Output replaces selected text unchecked.
    In your Run AppleScript workflow window, you will see AppleScript boilerplate. Click on it and press command+A, then backspace to delete this content. Copy and paste the above code into this Run AppleScript workflow window. Press the Run button in Automator's upper right corner. If (and it should) a TextEdit window pops up, you are good, and you want to press File > Save. A dialog box will pop-up where you can name your Service. I called my Frequency, you may wish to call it something else. Once you have save it, you can exit Automator. Services are deposited in yourlogin directory/Library/Services.
    If you have a Pages document open with text, either select it, or command+a to select the entire document. Now, you select your Service via Pages > Services > Frequency. This will now pop-up a new TextEdit document with the results. If you want to save this new document, you must use option+File to Save as...

  • How do I use domain guessing for single word but search for multiple?

    I would like to configure the search bar to make smart decisions about weather it should fill in an address or search for results. At the very least I would like it to be able to search when multiple words are entered but fill in the address when it's only one word (eg: typing "zelda" would take me to www.zelda.com but "the legend of zelda" would use search)

    The answer that you are probably looking for is what Google calls the '''I'm Feeling Lucky''' Search. Not quite what you describe but if there is one result that stands out as the most common result, you will get taken directly to the page. (Wouldn't work for me, I seldom find what I looking for in the first five hits.)
    This will involve a change to your '''about:config''' configuration variables.
    '''keyword.URL ''' default string
    http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=
    The '''&gfns=1''' is what gets you the I'm Feeling lucky search.
    References:
    * http://dmcritchie.mvps.org/firefox/search.htm
    * [http://kb.mozillazine.org/About:config About:config - MozillaZine Knowledge Base]
    * [http://kb.mozillazine.org/About:config_entries About:config entries - MozillaZine Knowledge Base]
    <hr>Personally I prevent all (external) searching from the location bar to prevent errors from being redirected to a substitute page (along with additional filtering via the '''Adblock Plus''' extension).
    For '''zelda''', I would type in the word and then use '''Ctrl+Enter''' so that it becomes www.zelda.com (with "Ctrl+Shift+Enter" gets .org, and with "Shift+Enter" gets .net).
    For more information on '''keyboard shortcuts''' and the fact that those two shortcuts above can be [http://www.mvps.org/dmcritchie/firefox/keyboard.htm#newtab switched] see
    * Firefox and other Browser Keyboard Shortcuts (Comparison Table)<br>http://www.mvps.org/dmcritchie/firefox/keyboard.htm
    The '''AwesomeBar''' search is what you get in the location bar drop-down when you enter strings of characters that exist in the Title and/or url address of a previously visited site or one that you have in your bookmarks. You see those choices '''before''' you press "Enter".
    Once you press "Enter" by default you would do a search with your currently selected (default) search engine, as if you had entered the search into the search bar.
    I don't like the last method and would use a ''keyword shortcut'' to use a customized search or to go directly to a web page. But without knowledge of what is available using the Location bar to run an external search works okay for most people.
    <hr>
    The "weather" threw me because for weather you really do want a keyword shortcut, the word you meant was whether.
    More information on [http://dmcritchie.mvps.org/firefox/kws.htm keyword shortcuts].
    * http://dmcritchie.mvps.org/firefox/kws.htm

Maybe you are looking for

  • FI Forex gain loss & Exchange Rate difference on Foreign Currency & Chart of Accounts

    Dear All,              I have queries on following : 1) what is difference b/w Forex gain loss account & Exchange Rate difference on Foreign Currency account . 2) Under which Heads in Balance sheet they should come as per Indian Accounting Standards.

  • Numbers 3.5 export to PDF creates single page

    When I export a Numbers 3.5 sheet to PDF, the PDF shows up as a long single file. How do I break this up either in Number or in Adobe Acrobat? It seems very odd that there is no evident way to to do this in Numbers so that it will export this way? Is

  • Accessing Shopping Cart

    I can browse iTunes store with no problem. My network connection is just fine. I can add items to my shopping cart. It's only when I try to view my account or my iTunes shopping cart that I get an error message saying: "We could not complete your iTu

  • Updated Itunes nothing but problems afterwards

    Hello,    I downloaded a new update today and now nothing is working like it was before.  I can not do a backup from my ipod touch to my computer.  I have playlists on my ipod that I can not put on my computer.  When trying to sync, it says my comput

  • BILL TO PARTY DETAILS

    HI,    is there any tcode to maintain purchase organisation details(address). please help me.