search for a matching value database

An existing database stores the results of a test like col 1 "Serial number" col 2 date etc.

There is now an obligation of search on the serial number and to display the results associated with it (lines).

I have the set of database tools and have begun using the vi SQL to retrieve the serial number from several Ref recordset. I'm at the point where I now need select the line corresponding to this Ref number but I was wondering if it would be better to read in the database in a table and then make a search on the serial number text search pass, get the table row where matches occur and then display the lines , or is this road very long-winded and should stick with the SQL vi?

Thank you

Jack

The query SELECT * FROM tablename WHERE Serial_number = "0002" would return the entire row for each occurrence of serial number 0002. If you wanted only to pass the results, the query is SELECT * FROM tablename WHERE Serial_number = '0002' AND Status = 'Pass '.

Do not use the column names with spaces in them!

I've seen many references to SQL online, and there are books available. I don't have that I could recommend, however. I learned using SQL Server and a SQL expert in our IT Department

Tags: NI Software

Similar Questions

  • Search for the text value data store

    Hello, I have a PDO of data to store, and I would like to search for a text value in a quantity of measure.  In each of my test series, there is a quantity of measure with the name TCNAME and stores the cell name of test in the string format.  I would like to get all the TCNAMEs that contain "TC4" for example.  Currently, I have to load TCNAME in the portal and display it in an array of string.

    Any ideas how I can do this?

    I assume you are using a PUMA testbed that stores this kind of goods on a unique value chain chains.

    There is no direct search method, so I guess that a script is the only solution we can offer.

    Datafinder you can search for the minimum and maximum of a channel. That would be too much work in the store of ASAM.

    "PDO / cpp"
    protected tcnameMQs: set tcnameMQs = store. GetElementList ("MeasurementQuantity", "name = TCNAME", true)
    protected tcnameMQ: for each tcnameMQ in tcnameMQs
    MsgBox tcnameMq.References ("local_columns"). Elements (1). Properties ("values"). Value
    Next

    ' AOP5 / Corba
    protected tcnameLCs: set tcnameLCs = store. GetElementList ("LocalColumn", "measurement_quantity.name = TCNAME", true)
    protected tcnameLC: for each tcnameLC in tcnameLCs
    MsgBox tcnameLC.Properties ("values"). Value
    Next

    I have added the example which should be the shortest path from my point of view. In AOP5, you can search LocalColumn and spend BA which is less overhead.

    It is perhaps a good idea to post-processing of the data base and crush the decription "Test name" by

    "The test cell name == NAME. You can search not post-processed by Searchin' for.

    protected tcnameMQs: set tcnameMQs = store. GetElementList ("MeasurementQuantity", "description = name of the test cell", true)
    protected tcnameMQ: for each tcnameMQ in tcnameMQs
    tcnameMQ.Properties ("description"). Value = "name of the test cell is" & tcnameMq.References ("local_columns"). Elements (1). Properties ("values"). Value
    Next
    Store.Save

    Thereafter, you would be able to search for it.

    Greetings

    Andreas

  • Search for the nearest value table

    IM wondering if its possible to find a 1 d table worth, if it is not found, then find the nearest match. IM using the 'double' data type and I need at least an accuracy of 4 decimal point in the research.

    For now, im rounding decimal values to the nearest integers from you, but it is not effective at all. Im getting a lot of unwanted split in the plot. I need to be able to search for the decimal points. I found this function "About Equals.VI" starting from a previous thread. Even that uses the concept of the rounding.

    I enclose 3 screws "0.8 & 0.4.VI" are that I created, rounding decimals nearest digit.

    The "approximately equal" is the one I found online.

    The 3rd is I try to mess with what I can find as close a match.

    Y at - it a trick to work around this problem?

    Thank you

    Eureka

    This VI uses the first type of step 3 in your data.  Since you said that you can get the data, you can drop the in VI.

    At the end where I calculate the slope, you can use a linear adjustment if you have full or professional LabVIEW.

  • searching for a column value

    Hello

    I need a little faovour... I need search a pariticular table column value... !! Whenever my superiors asking
    What table with that value... This value... etc... !!!

    For this I need a solution... (select query). If I give the value name and the column of the table... I can't what column having this perticular value? is this possible? I have many tables and each table has many columns. It takes a lot of time to search for a value of column for each table and columns. Please give me a nice solution.

    Thanks to the adv.


    Concerning
    Rekha

    for number

    SQL> select table_name, column_name
      2    from (select rownum,table_name, column_name,
      3                 dbms_xmlgen.getxml('select 1 from "'||table_name||'" where "'||column_name||'" =
    &val') x
      4            from user_tab_columns where data_type='NUMBER'
      5  ) where length(x)!=0
      6  /
    Enter value for val: 3000
    old   3:                dbms_xmlgen.getxml('select 1 from "'||table_name||'" where "'||column_name||'" =&val') x
    new   3:                dbms_xmlgen.getxml('select 1 from "'||table_name||'" where "'||column_name||'" =3000') x
    
    TABLE_NAME                     COLUMN_NAME
    ------------------------------ ------------------------------
    EMP                            SAL
    TID                            SAL
    
    7 rows selected.
    
    SQL> 
    

    for varchar2

    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> select table_name, column_name
      2    from (select rownum,table_name, column_name,
      3                 dbms_xmlgen.getxml('select 1 from "'||table_name||'" where "'||column_name||'" =
    ''&val''') x
      4            from user_tab_columns where data_type='VARCHAR2'
      5  ) where length(x)!=0
      6  /
    Enter value for val: OPERATIONS
    old   3:                dbms_xmlgen.getxml('select 1 from "'||table_name||'" where "'||column_name||'" =''&val''')
    new   3:                dbms_xmlgen.getxml('select 1 from "'||table_name||'" where "'||column_name||'" =''OPERATIO
    
    TABLE_NAME                     COLUMN_NAME
    ------------------------------ ------------------------------
    DEPT                           DNAME
    
    SQL> 
    
  • How to search for items by value in Multisim?

    I have several caps 100nF in my diagram. How can other than to make a BOM, I get the diagram for just the value? So far, I get 0 results.

    Thanks for the help.

    Scotty544

    The search in Multisim search RefDes, not the value. However, if the version you have the spreadsheet component, you can select the value column (click on the header) and then click the sort Ascending or Sort Descending button to group all of the components.

    I also have a request to expand the search to include the value and other data.

  • Can RoboHelp9 search for information from another database outside himself

    Hi experts,

    I just got the task of studying the search function of the RoboHelp if she could meet our needs:

    We want to have a RoboHelp 9 to host the Center contact information, and we already have two or three other database exist for different departments that contact center agents could connect to search for information.

    the question is:

    1. is it possible, after RoboHelp 9 created and configured, agents can search and retrieve information not only reside in RoboHelp but is also in other databases?

    2 is it possible that the public internet users could search for and retrieve information located in RoboHelp and other databases (allowing us to go)?

    Thank you very much in advance,

    Fran

    Not sure you mean by your last paragraph - you can check the blog post described in the help article - http://iconlogic.blogs.com/weblog/2011/02/adobe-robohelp-9-external-content-search.html#tp

    It is pretty cool (I don't use it myself in my projects because many of our customers are small internet); you could also add URLS to the search pages from external sites (such as a knowledge base) and let users make their own additional research.

  • Help-ColdFusion - allowing a user search for records in a database by entering a startand end date - (CREATEODBCDATE)

    I want to allow a user to enter a beginning date and to set the period they want to find records of members who have joined some end dates. Funny, it is... I got half of the working time. For example I have 4 folders between 26/10/2005 and 01/08/2006. When I enter 01/01/2005 as startDate and endDate 31/08/2006, I get 4 records. However, if I change the endDate to 09/01/2006 I get all records in the database! ??? Why is this? I can't get my head around it!

    Here is my code:
    First the code for the form for the user to input search criteria on:

    < html >
    < body >
    < action = "FORM memberJDateSearch.cfm" method = "post" > "

    < P > start date: < input type = "text" name = "startDate" >
    < br > End Date: < input type = "text" name = "endDate" >
    < input type is 'reset' value is 'Clear' >
    < input type = "submit" value = "Submit" >
    < / MAKE >

    < / body >
    < / html >

    Pretty simple. Now, the code of the page process and display:

    < html >
    < body >


    < cfquery "memberJDateSearch" datasource = name = access "jpkelle2" >
    SELECT *.
    Members
    WHERE ((joinDate BETWEEN #CreateODBCDate (startDate) # AND #CreateODBCDate (endDate) #))

    < / cfquery >

    < table border = 1 bgcolor = "beige" cellpadding = '3' cellspacing = "0" >
    < b >
    < /Th > < th > Member ID
    Name < th > < /th >
    Sex < th > < /th >
    < th > Birth Date < /th >
    Address < th > < /th >
    < th > Email < /th >
    Date < th > joined < /th >
    < /tr >




    < CFOUTPUT Query = "memberJDateSearch" >

    < b >
    < td > < center > #memberID # < Center > < table >
    < td width = "15" > #forename # #initial # #surname # < table >
    < td > #sex # < table >
    < td width = "10%" > #disp('#dob#') # < table >
    < td > #address #, #town #, #county #, #postCode # < table >
    < td > #email # < table >
    < td width = "10%" > #disp('#joinDate#') # < table >
    < /tr >




    < / CFOUTPUT >

    < /table >

    < hr > < p > end of the list of members. < /p >

    < / body >
    < / html >


    any ideas? Please help me.

    Try formatting your dates first (before the call to CreateODBCDate). I just tried this on my test page and it worked correctly. I removed calls DateFormat, now dates in your format, and it didn't work. See if something like the following will help you:




    SELECT *.
    Members
    WHERE ((joinDate BETWEEN #CreateODBCDate (startDate) # AND #CreateODBCDate (endDate) #))

  • Advanced search for a price range while searching for an empty values using php in DW

    I'm creating an advanced search with DW php. I want to present a research where some titles can be left black. If looking for empty values (which I did, thank you David Powel), however then research across a range of prices doesn't seem to work.

    Please see attached form:

    The search page:

    <form action="Detailed-Search-Result.php" method="get" target="_self"><table width="90%" border="0" cellspacing="0" cellpadding="2">
      <tr>
        <td colspan="2"><label for="Detailed Search">Advanced Search</label></td>
        </tr><tr>
        <td><label for="Product">Product:</label>
          </td>
        <td><select name="Category" id="Category">
          <option value=></option>
            <option value="Keyboard">Keyboard</option>
            <option value="Piano">Piano</option>
          </select></td>
      </tr>
      <tr>
        <td><label for="Make">Make:</label>
        </td>
        <td><select name="Manufacturer">
          <option value=></option>
          <option value="Boss">Boss</option>
          <option value="Casio">Casio</option>
          <option value="Kawai">Kawai</option>
          <option value="Ketron">Ketron</option>
          <option value="Korg">Korg</option>
          <option value="Roland">Roland</option>
          <option value="Samson">Samson</option>
          <option value="Yamaha">Yamaha</option>
        </select></td>
      </tr>
      <tr>
        <td><label for="Color">Color:</label></td>
        <td><select name="Color">
          <option value=></option>
          <option value="Black">Black</option>
          <option value="Cherry">Cherry</option>
          <option value="Mahogany">Mahogany</option>
          <option value="Polished Eboney">Polished Eboney</option>
          <option value="Rosewood">Rosewood</option>
          <option value="White">White</option>
          <option value="Red">Red</option>
        </select></td>
      </tr>
    
      <tr>
        <td><label for="Price">Price:</label></td>
        <td><select name="Price">
          <option value=></option>
          <option value="0-500">£0-500</option>
          <option value="500-1000">£500-1000</option>
          <option value="1000-2000">£1000-2000</option>
          <option value="2000">£2000&gt;</option>
        </select></td>
      </tr>
      <tr>
        <td colspan="2">
          <input name="Search2" type="submit" id="Search2"></td>
        </tr>
        </table>
    </form>
    
    

    The results page

    $varCategory_rsgetsearch2 = "%";
    if (isset($_GET['Category'])) {
      $varCategory_rsgetsearch2 = $_GET['Category'];
    }
    $varMake_rsgetsearch2 = "%";
    if (isset($_GET['Manufacturer'])) {
      $varMake_rsgetsearch2 = $_GET['Manufacturer'];
    }
    $varColor_rsgetsearch2 = "%";
    if (isset($_GET['Color'])) {
      $varColor_rsgetsearch2 = $_GET['Color'];
    }
    $varPrice_rsgetsearch2 = "%";
    if (isset($_GET['Price'])) {
      $varPrice_rsgetsearch2 = $_GET['Price'];
    }
    mysql_select_db($database_dBconn, $dBconn);
    $query_rsgetsearch2 = 'SELECT * FROM products';
    $where = false;
    if (isset($_GET['Category']) && !empty($_GET['Category'])) {
     $query_rsgetsearch2 .= ' WHERE Category LIKE varCategory '. GetSQLValueString($_GET['Category'], 'text');
      $where = true;
    }
    if (isset($_GET['Manufacturer']) && !empty($_GET['Manufacturer'])) {
      if ($where) {
       $query_rsgetsearch2 .= ' AND ';
      } else {
       $query_rsgetsearch2 .= ' WHERE ';
        $where = true;
      }
     $query_rsgetsearch2 .= 'Manufacturer LIKE varManufacturer ' . GetSQLValueString($_GET['Manufacturer'], 'text');
    }
    if (isset($_GET['Color']) && !empty($_GET['Color'])) {
        if ($where) {
       $query_rsgetsearch2 .= ' AND ';
      } else {
       $query_rsgetsearch2 .= ' WHERE ';
        $where = true;
      }
      $query_rsgetsearch2 .= 'Color LIKE varColor ' . GetSQLValueString($_GET['Color'], 'text');
    }
    if (isset($_GET['Price']) && !empty($_GET['Price'])) {
        if ($where) {
                        } 
       $query_rsgetsearch2 .= ' AND ';
      } else {
       $query_rsgetsearch2 .= ' WHERE ';
        $where = true;
      }
     switch( $_GET['Price'] ){
            case '0-500':
            $query_rsgetsearch2 .= '  RRP BETWEEN 0 AND 500 ORDER BY price ASC'. GetSQLValueString($_GET['Price'], 'text');
            break;
              case '500-1000':
            $query_rsgetsearch2 .= ' RRP BETWEEN 500 AND 1000 ORDER BY price ASC'. GetSQLValueString($_GET['Price'], 'text');
            break;
                        case '1000-2000':
            $query_rsgetsearch2 .= ' RRP BETWEEN 1000 AND 2000 ORDER BY price ASC'. GetSQLValueString($_GET['Price'], 'text');
            break; 
              case '2000':
           $query_rsgetsearch2 .= ' RRP BETWEEN 2000 AND 10000 ORDER BY price ASC'. GetSQLValueString($_GET['Price'], 'text');
            break;
    }
    
    $query_rsgetsearch2 = sprintf("SELECT * FROM products WHERE Category LIKE %s AND products.Manufacturer LIKE %s AND products.Color LIKE %s", GetSQLValueString("%" . $varCategory_rsgetsearch2 . "%", "text"),GetSQLValueString("%" . $varMake_rsgetsearch2 . "%", "text"),GetSQLValueString("%" . $varColor_rsgetsearch2 . "%", "text"));
    $query_limit_rsgetsearch2 = sprintf("%s LIMIT %d, %d", $query_rsgetsearch2, $startRow_rsgetsearch2, $maxRows_rsgetsearch2);
    $rsgetsearch2 = mysql_query($query_limit_rsgetsearch2, $dBconn) or die(mysql_error());
    $row_rsgetsearch2 = mysql_fetch_assoc($rsgetsearch2);
    
    

    I would be greatfull for any help

    I managed to solve the problem.

    Ultimately I don't check if the values were empty, as it worked fine without. However, the switch of the price did not work in combination with the rest of the query.

    I solved the problem as follows:

    $varCategory_rsgetsearch2 = "%";
    if (isset($_GET['Category'])) {
      $varCategory_rsgetsearch2 = $_GET['Category'];
    }
    $varMake_rsgetsearch2 = "%";
    if (isset($_GET['Manufacturer'])) {
      $varMake_rsgetsearch2 = $_GET['Manufacturer'];
    }
    $varColor_rsgetsearch2 = "%";
    if (isset($_GET['Color'])) {
      $varColor_rsgetsearch2 = $_GET['Color'];
    }
    $varPrice_rsgetsearch2 = "%";
    if (isset($_GET['Keysound_price'])) {
      $varPrice_rsgetsearch2 = $_GET['price'];
    
    }
    mysql_select_db($database_dBconn, $dBconn);
    $query_rsgetsearch2 = sprintf("SELECT * FROM products WHERE Category LIKE %s AND products.Manufacturer LIKE %s AND products.Color LIKE %s", GetSQLValueString("%" . $varCategory_rsgetsearch2 . "%", "text"),GetSQLValueString("%" . $varMake_rsgetsearch2 . "%", "text"),GetSQLValueString("%" . $varColor_rsgetsearch2 . "%", "text") );
    switch( $_GET['price'] ){
            case '0-500':
            $query_rsgetsearch2 .= ' AND price BETWEEN 0 AND 500 ORDER BY price ASC';
            break;
              case '500-1000':
            $query_rsgetsearch2 .= ' AND price BETWEEN 500 AND 1000 ORDER BYprice ASC';
            break;
                        case '1000-2000':
            $query_rsgetsearch2 .= ' AND price BETWEEN 1000 AND 2000 ORDER BY price ASC';
            break;
              case '2000':
            $query_rsgetsearch2 .= ' AND price BETWEEN 2000 AND 10000 ORDER BY price ASC';
            break;
    }
    
    $query_limit_rsgetsearch2 = sprintf("%s LIMIT %d, %d", $query_rsgetsearch2, $startRow_rsgetsearch2, $maxRows_rsgetsearch2);
    $rsgetsearch2 = mysql_query($query_limit_rsgetsearch2, $dBconn) or die(mysql_error());
    $row_rsgetsearch2 = mysql_fetch_assoc($rsgetsearch2);
    

    I'm sure you can keep checking the values, however for me the most was not necessary for this.

    Thanks for your help

  • Search for reviews in the database objects

    Hello

    I want to search a view allows to call "view_xyz" in my database and now I want to search my entire database where I used this point of view.
    In fact, I want to do what I'm going to change the name of this point of view, so I'm looking for where ever it is used...
    Any suggestions how do slove this problem...

    Thank you!!

    Thanks Jens.

    Good to know.

    Kind regards.

    LOULOU.

  • Search for use of a database Package.

    Apex 3.2

    I recently moved a function of database on one package to another.

    I've changed as much as I could in the application code, but I might have missed something.

    Is it possible in the apex to search the entire application, to find where I used this function.

    I tried to use the search (top-right in the report generator) function, but it doesn't seem to work.

    I know this because, as a test, I let one of my tabs (terms) referring to the old package and

    the search function has returned it.

    Any help appreciated

    Gus

    I posted a query, we used to do this in 3.x in a previous thread: Re: How do I know in which elements, pages one function/procedure,... will serve as a?

    It covers most of the places where a SQL or PL/SQL object may be referenced in APEX 3.x. (I think it was then extended to cover also the SQL and PL/SQL conditions on components. I don't work there anymore so I don't have access to the latest version.)

    Run it from the application of the analysis of a schema in SQL Developer or the APEX SQL Workshop.

  • Is there a way to search for a specific value of margin (or margins wo a specific value)?

    In a body of book, I fixed the installer of margins. On some pages, I replaced the bottom for design margin. In reviewing the book, I found a few pages where I accidentally changed the inside or the outside margin.

    Say my inner margin est.75 po. Is there a way to search and find all the pages with a padding pas.75 margin or if not all inside margins less de.75, upper to, etc.?

    Any ideas would be welcome.

    Well, it's a simple script. Here's one who seeks margins less than the specified threshold, in this case 1.0 (regardless of your units of the rule):

    var threshold=1.0,
        i, m=app.activeDocument.pages.everyItem().marginPreferences;
    for (i=0; i		   
  • Search for Windows 7 can't find partial matches - when will it be fixed or is there a workaround?

    Windows (in Windows 7 and Vista) search will find only a partial file name (and the file content I guess) match if the text is the beginning of the string. He won't find a string in a file (the file content?) name. This diminshes greatly the value of research and thought that he would have been treated here.

    Example:

    I have a file named invoicenumber12345.doc
    If I search on invoicenumber file appears in the results. If I look on number12345, 12345 or any other subset of characters that appear in the name I get nothing.

    It is therefore impossible to find files based on partial knowledge.

    Example:

    I know that I have sent a letter to Joe Smith, but I can't because I named the file lettertojoesmith.doc
    Due to the limitation of the search, if I'm not rememer the exact file name (or at least that it starts with "letterto", I couldn't find - then what is research?) Through structure file names so that you know how to find totally defeated RESEARCH capacity.

    Does anyone know when this limitation will be addressed or whether there is a solution?

    You can use wildcards like? and *.
    In your case: search for * 12345 or * joe * smith.

    In fact, it is more flexible that a simple search on partial file names.

  • Search for a specific column to a large database entry

    So our program manager approached me today looking for the combination of the specific table/column and its referential integrity that contains several entries in the column with the value 'AMSA.

    Our database has 4000 + tables so I'll try to track down one by one to which table has these entries, but does anyone know a quick search for this tool?

    Hello

    Will you please check the following and whether it is useful and important, wort can be run in your target database.

    With the following query, you would be able to get the "select" statements to find in each table. column, at the entrance of the AMSA.

    WITH CANDIDATE_TABLES
    AS
    (SELECT OWNER, TABLE_NAME, COLUMN_NAME, DATA_TYPE, DATA_LENGTH
    FROM DBA_TAB_COLUMNS
    WHERE OWNER IN ('OWNER1') /*  <<<<<<<<<< PUT ALL SCHEMAS, COMMA SEPARATED >>>>>>>>   */
    AND (DATA_TYPE LIKE '%CHAR%' AND DATA_LENGTH > 3) /* because AMSA has more than 3 chars*/
    AND TABLE_NAME NOT LIKE 'BIN$%$0'
    AND (OWNER,TABLE_NAME) NOT IN (SELECT OWNER,TABLE_NAME FROM DBA_TABLES WHERE TEMPORARY='Y' UNION SELECT OWNER,TABLE_NAME FROM DBA_EXTERNAL_TABLES)
    )
    SELECT 'SELECT /*+ PARALLEL(4) */ '||''''||OWNER||'|'||TABLE_NAME||'|'||COLUMN_NAME||''''||' AS OWNER_TABLE_COLUMN'||
    ' FROM '||OWNER||'.'||TABLE_NAME||' WHERE INSTR(UPPER('||COLUMN_NAME||'),'||''''||'AMSA'||''''||',1) > 0 AND ROWNUM < 2 UNION ALL' STMT
    FROM CANDIDATE_TABLES C
    ;
    

    The query above returns phrases such as:

    SELECT /*+ PARALLEL(4) */ 'OWNER1|TABLE1|COLUMN1' AS OWNER_TABLE_COLUMN FROM OWNER1.TABLE1 WHERE INSTR(UPPER(COLUMN1),'AMSA',1) > 0 AND ROWNUM < 2 UNION ALL
    SELECT /*+ PARALLEL(4) */ 'OWNER1|TABLE1|COLUMN2' AS OWNER_TABLE_COLUMN FROM OWNER1.TABLE1 WHERE INSTR(UPPER(COLUMN2),'AMSA',1) > 0 AND ROWNUM < 2 UNION ALL  <<>>
    

    Note: Remove the last "UNION ALL"

    When the final query is complete, the final result is as follows (a reel in a file):

    OWNER1|TABLE1|COLUMN1
    OWNER1|TABLE1|COLUMN2
    ....
    ....
    OWNERX|TABLEX|COLUMNX
    

    Ensure that phrases using in parallel and could be dangerous for a transactional database. First, do a little test.

    Spool the output to a file.

    Kind regards

    Juan M

  • Search for an exact match without additional words

    Hello world

    is it possible to know if a tag contains a certain word or phrase and nothing else? For example the search for all documents with the title "foo" should match all documents containing < title > foo < /title > but not documents containing something like < title > foo bar < / title >. I tried something like "(foo ~ (% ~ foo)) IN the title ' but I get an error"extension of generic query results in terms too", so using a wildcard character is no option here. Any ideas?

    Another method would be to use extractvalue to limit lines. He would still use the text index to get the rows with foo inside, then extractvalue would limit only the rows where the word foo is in. Which would eliminate the need for a procedure or user_datastore or increasing the size of the index. Please see the demo below.

    SCOTT@orcl_11gR2> create table documents
      2    (text  varchar2 (45))
      3  /
    
    Table created.
    
    SCOTT@orcl_11gR2> insert all
      2  into documents values ('foo')
      3  into documents values ('foo bar')
      4  into documents values ('bar foo')
      5  select * from dual
      6  /
    
    3 rows created.
    
    SCOTT@orcl_11gR2> insert into documents
      2  select '' || object_name || ''
      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
    ---------------------------------------------
    foo
    
    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>
    
  • By default to search for "Matches" operator

    How can we default operator for 'Matches' in the search page advanced search for field types?

    Currently, some appear like 'Contains' and some use "Matches" for failure on this page.

    Blog of Kyle using as the reference

    https://blogs.Oracle.com/Kyle/entry/setting_substring_back_as_defa

    try to add to config.cfg

    DefaultSearchOperator = equal

Maybe you are looking for

  • A way to transfer a new iPad application

    I have an iPad 2 which has a working application that requires a password three years ago.  I want to transfer the application of a new iPad pro. When the new iPad downloaded from the cloud, he has forgotten the passwords. Is there a way to get the a

  • COMPUTER CRASHES AFTER UPDATE TO SERVICE PACK 2

    My computer crashes after updating windows service pack 2 for windows vista. I conducted analyses of virus and I'm virus-free. So, what can be the problem. I even restored the computer and updates appear and disappear until I update. I need help I ha

  • Windows 7 automatic connection

    You need to activate the automatic connection at startup for HTPC PC connected to TV without keyboard and mouse. HTPC PC launches Media Center automatically to allow the user to interface with the remote only. PC needs password to you connect on WHS

  • How to reconnect my wifi after I lost him on hp laptop

    I did something to my windows professional 7 hp and lost my ability wifi can't connect using the internet!

  • HP iPAQ rx3100 PDA

    I have an older ipaq rx3100 pda I want syn with Outlook 2010 on my computer with Windows 7.  Everything that I tried to Activesync 4.5 for Windows 'supposed' fix for Vista does not work.  It is said that it is not compatible. I would use this device.