Search for string in PlSql-Code

Hi
I have a simple question. Is it possible to search for a string in all PlSql-Proceduren (Packages, Procedures, Functions, Triggers, Views). How can i find out where a certain package-prodedure/function is referenced.
Thanks

View -> Extended search. In 11.1 it would query against plscope dictionary views supported by rdbms. In lower versions it would reduce to querying all_source.

Similar Messages

  • Is it possible to search for strings containing spaces and special characters?

    In our RoboHelp project, there are figures with text labels such as Figure 1, Figure 3-2, etc.
    When I search for "Figure 3" I get all pages containing "Figure" and "3", even if I surround it in quotes.  Similarly, searching for "3-2" treats the '-' character as a space and searches for all pages containing '3' or '2'.
    Is there a way to search for strings containing spaces and special characters?

    In that case I think the answer is no if you are using the standard search engine. However I believe that Zoom Search does allow this type of searching. Check out this link for further information.
    http://www.grainge.org/pages/authoring/zoomsearch/zoomsearch.htm
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • Searching for strings in a txt file

    I am writing a program based on the six degrees of seperation theory.
    Basically I have been given a (very large) txt file from the imdb with a list of all the films written in it.
    The text in the document is written like this:
    'Tis Autumn: The Search for Jackie Paris (2006)/Paris, Jackie/Moody, James (IV)/Bogdanovich, Peter/Vera, Billy/Ellison, Harlan/Newman, Barry/Whaley, Frank/Murphy, Mark (X)/Tosches, Nick (I)/Moss, Anne Marie
    (Desire) (2006)/Ruggieri, Elio/Micijevic, Irena
    .45 (2006)/Dorff, Stephen/Laresca, Vincent/Eddis, Tim/Bergschneider, Conrad/Campbell, Shawn (II)/Macfadyen, Angus/John, Suresh/Munch, Tony/Tyler, Aisha/Augustson, Nola/Greenhalgh, Dawn/Strange, Sarah/Jovovich, Milla/Hawtrey, Kay
    10 Items or Less (2006)/Ruiz, Hector Atreyu/Torres, Emiliano (II)/Parsons, Jim (II)/Freeman, Morgan (I)/Pallana, Kumar/Cannavale, Bobby/Nam, Leonardo/Hill, Jonah/Vega, Paz/Echols, Jennifer/Dudek, Anne/Berardi, Alexandra
    10 MPH (2006)/Weeks, Hunter/Armstrong, Pat (II)/Caldwell, Josh/Waisman, Alon/Keough, Johnathan F./Weeks, Gannon
    10 Tricks (2006)/Cruz, Raymond/Swetland, Paul/Selznick, Albie/Hennings, Sam/Gleason, Richard/Leake, Damien/Skipp, Beth/Ishibashi, Brittany/Thompson, Lea (I)/Jinaro, Jossara/Brink, Molly
    1001 Nights (2006)/Wright, Jeffrey (I)
    10th & Wolf (2006)/Lee, Tommy (VI)/Renfro, Brad/Ligato, Johnny/De Laurentiis, Igor/Luke Jr., Tony/Mihok, Dash/Garito, Ken/Capodice, John/Dennehy, Brian/Gullion, Jesse/Salvi, Francesco (I)/Cordek, Frank/Marsden, James (I)/Bernard, Aaron/Brennan, Patrick (VII)/O'Rourke, Ben/Gallo, Billy/Heaphy, James/Stragand, Dave/Vellozzi, Sonny/Pistone, Joe (I)/Morse, David (III)/Landis, Pete/Cain, Atticus/Trevelino, Dan/Demme, Larry/Sisto, Frank/Rosenbaum, Paul/Grimaldi, James (I)/Ribisi, Giovanni/Hopper, Dennis/Devon, Tony/Sigismondi, Barry/Kilmer, Val/Marinelli, Sonny/Cacia, Joseph/Rossi, Leo (II)/Tott, Jeffrey/Wawrzyniak, Aaron/Boombotze, Joey/Marie, Corina/Arvie, Michilline/Warren, Lesley Ann/De Laurentiis, Veronica/Moresco, Amanda/Boecker, Margot/Rossi, Rose/Latimore, Meritt/Dunlap, Doreen/Perabo, Piper/Horrell, Nickole/Sonnichsen, Ingrid
    11 Minutes Ago (2006)/Irving, Len/Welzbacher, Craig/Michaels, Ian/Dahl, Evan Lee/Gebert, Bob/Juuso, Jeremy/Hope, Trip/Green-Gaber, Renata/Dawn, Turiya/Reneau, Taryn/M
    Thats just 2 lines!
    what the program will do is take in a name (from a gui) of an actor/actress and find the smallest connection to a famous actor.
    So first things first, my idea of thinking is to search the file for K.E.V.I.N. B.A.C.O.N and all his films, and safe them into an array. Then do another search for films from the actor that the user entered at the gui. then find the shortest possible connection to both stars.
    my code for the search part of the program
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.File;
    import java.io.FileNotFoundException;
    public class FileSearch {
         File aFile = new File("cast.06.txt");     
         FileInputStream inFile = null;
         String actor = "surname, forename"; // the person who will be the centre point e.g. kevin.bacon.
           //get the result of the actor from the gui will go here.
         public void openFilm()
              try
                  inFile = new FileInputStream(aFile);     
              catch(FileNotFoundException e)
                   System.out.println("Error");
    }The problem I have is that I can't work out how to search the txt file for a specific string/s and save them into an array. (I'm not sure if this is the best way to go about it or not at this stage).
    So whats the best way to search for an actor from that file and save the film title and the year of release?
    Hope this makes sense? what I hope the final program will be like is like this http://oracleofbacon.org/

    I went away and looked at regular expressions and this is what I came up with
    public class NameSearch{
         public static void main(String[] args)
              NameSearch ns = new NameSearch();
              ns.runIt();
         public void runIt()
              java.util.Scanner fileScan = null;
              try{
                   fileScan = new java.util.Scanner(new java.io.File("imdb.txt"));
              }catch(java.io.FileNotFoundException e)
                   e.printStackTrace();
                   System.exit(0);
              String token = null;
              String actor = "Surname, Forename";
    //real name will go in actor, left it like that for example
              while(fileScan.hasNext()){
                   token = fileScan.next();
                   Pattern pattern = Pattern.compile(actor);
                   Matcher m = pattern.matcher(token);
                   while(m.find())
                        System.out.println(m.start() + m.end());
    }This by any means not finished, I'm just trying to get to grips with regualr expressions. But when I run the program it doesn't return anything, from what I've tried to work out is it should return actor x amount of times they appear in the file. But when I run it nothing comes back (the actors name is in the text file) so I'm not too sure what I'm doing wrong, any suggestion please

  • Search for string and move decimal

    Hello,
    I am trying to write code that will search for a fractional string within an array and convert it from mV to V so it can be properly compared to the other fractional string numbers in the array.
    I have an array that outputs x iterations  each with a minimum and maximum column including several different types of decimal strings (negative/positive with several decimal places) each ending with either mV and V (example string: -725.543mV).
    I then split the array into columns containing the minumum and maximum values of each iteration. I want to compare the minimum values of each iteration and find the most minimum, and do the same thing with the maximum values.
    Unfortunatley the way I'm doing it, when I convert from fractional string to number it removes the V or mV unit label but does not convert the number from mV to V. so it compares -725.543mV with -52.334V as -725.543 & -52.334 thus declaring the mV value the most minimum. I need the program to recognize that mV is less than V or search each array for values labeled with mV and move the decimal place so it is in standard V format.
    The unit label is actually part of the string and not the display (as you can see in the code I've attached) and I understand this is a little tricky with the way I have to do it. But this is a dumbed down chunk of code I will eventually incorporate into my larger program which reads the values and their units from several different types of oscilloscopes. The Scopes output the values as strings as they appear on the screen and don't differentiate between mV and V unless they are told to output the units which just tags them on the end of the string.
    I'm sorry for the large post. SO to sum up I need to search an array to make sure all values have the same units, if they don't I need to convert each value to the proper unit and output the max and min from the resulting array. my code is attached. Thank you for your help.
    Solved!
    Go to Solution.
    Attachments:
    File manipulation.vi ‏15 KB

    crossrulz wrote:
    jcarmody wrote:
    camerond wrote:
    Sorry, Jim, that's not quite right. You forgot to consider significant figures (your third min is not quite right). [...]
    Good catch, but, really?   
    That "Finally!" comes out to -5569492V to me.  Holy crap.  -5.569492MV!  I think there's a problem there.
    Carp! Stupid negative numbers, shouldn't be allowed. Put a piece of duck tape over the place for that negative sign, that'll fix it.
    I'll get back, it's now a matter of principle.
    Jim, how does your algorithm do when there are 8 or 9 sig figs, say -56.9492345mV? (Yep, too lazy to draw it in myself.)
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • BP search for General and Company Code roles

    Hi
    On the modify Money Market Transactions (TM_52) (and some similar to it for other products TS02, TM32, TO02), if i go to the Partner Assignment Tab and I try to assign a bp for the General or the Company Code roles, the bp search program give me no results.
    If i try to do the search for the Counterparty role it gives me the results I expect.
    Is there any reason for do not give any result when these roles are the primary roles that, of course, the bp I choose has? Is it a program problem (this program has returned me some dumps and I implemented some Notes on it before)? If so, is there any solution?
    I want to assign these roles because I hope that these assignments with these roles modify the payment data or the master data of the transaction.
    Thanks

    Hi
    This is a very common topic.
    look at this thread:
    Authorization in reports
    Here's a starting point ...
    http://help.sap.com/saphelp_bw33/helpdata/en/72/eeb23b94c6e54be10000000a11402f/frameset.htm
    Outline steps...
    In RSSM:
    Create authorization object
    Make authorization object applicable to relevant InfoProviders
    In PFCG:
    Add authorization object to new or existing Roles with appropriate field assignments
    Make User/Role assignments
    Reg's
    Edan

  • Searching for string in text files on XP

    Hi,
    At the moment I'm working on a Struts program. The output I get is:
    The requested resource (Invalid path /displayAddProductForum was requested) is not available.Somewhere in my files, I have a line containing /displayAddProductForum that should be displayAddProductForm. As I'm using XP as my development platform, I use the 'Windows Explorer' search facility. And I have noticed this search facility does not look in .java, .jsp and any other file with a non-Microsoft file-extension. So, how do you search for a string in a source file on XP?
    Abel

    sabre150 wrote:
    kajbj wrote:
    sabre150 wrote:
    Abel wrote:
    , I use the 'Windows Explorer' search facility. And I have noticed this search facility does not look in .java, .jsp and any other file with a non-Microsoft file-extension. So, how do you search for a string in a source file on XP? Err.. On my XP it does search though java/jsp files if I tell it to!You mean by modifying the registry?No! Using the right mouse click on a directory to get a context menu -> Search -> (All or part of filename : .java ) and (A word or phrase in the file : blah blah blah) -> Search
    Edit : Errr.. maybe I'm talking rubbish because I have just tested this and it only finds 5 java files of mine that contain the word 'class'! I'm sure it used to work because in my 'Windows' days I frequently used it.
    Edited by: sabre150 on Dec 20, 2007 12:44 PMSounds a bit odd. Search in windows should only search in registered file types and neither jsp nor java are registered types. It's however possible to modify the registry and add extensions (but it's not possible to say search within all types of files, and that sucks)

  • Search for string in paragraph and apply a new character style?

    I'm searching for a way to find a specific string in a specific text frame and make it bold. so my thought was to search and then apply a character style from my template doc. I thought this would work, but I went wrong somewhere.
    newDoc is my document. 
    //something like
    var Bios = "Representative Biography:\r want to leave this text normal.";
    var myTextFrameBios = newDoc.pages.item(i).textFrames.add({geometricBounds:[4.5277, 2.36, 8.625, 5.375], contents:Bios});
    var myTextObjectBios = myTextFrameBios.parentStory.texts.item(0);
    // IS THIS CONFLICTING with my change below? Can I apply a character style within a par styled frame?
    myTextObjectBios.appliedParagraphStyle = newDoc.paragraphStyles.item("CompanyProfile");
                                                      //Clear the find/change preferences.
                                                    app.findGrepPreferences = NothingEnum.nothing;
                                                    app.changeGrepPreferences = NothingEnum.nothing;
                                                    app.findTextPreferences.findWhat = "Representative Biography:";
                                                    app.changeTextPreferences.changeTo = "Representative Biography:";
                                                    app.findGrepPreferences.appliedCharacterStyle = newDoc.characterStyles.item("BoldBioHead");
                                                    // Perform the operation
                                                    app.documents.item(0).changeGrep();
                                                    app.findGrepPreferences = NothingEnum.nothing;
                                                    app.changeGrepPreferences = NothingEnum.nothing;

    @caseyctg – If you want to apply a character style to a text object in a specific text frame, you could restrict the scope of your script to that specific text frame:
    Example with the variable "myTextFrame" you have to define before:
    myTextFrame.changeText();
    Btw.: you are doing a text search and clearing your GREP find/change preferences at the start of the snippet? Why is that?
    You could do a:
    app.changeTextPreferences = app.findTextPreferences = NothingEnum.nothing;
    or:
    app.changeTextPreferences = app.findTextPreferences = null;
    set before the search and after the change, if you want to be on the safe side…
    Uwe

  • Searching for deailed info on code formatting rules

    SQL Developer 3.2.20.09
    Am looking for some detailed explanation of the various options for the SQL Formatting rules. The help, under 'Database: SQL Formatter' is pretty thin. I'd like to see something that explains the behavior of each discreet formatting option. While some may seem self-evident, not all are and even those that appear to be don't seem to behave the way someone might think or want. It would be nice if there were some detailed document to help with "that's not what I wanted" types of questions.

    Hi EdStevens,
    There is currently an option to put in newlines *"Line Breaks->More Newlines"* after the format (around blocks/loops)
    (and after the formatter has stripped the users original newlines). (The option is off by default)
    I added newlines where it seemed best and achievable in the time available.
    See the example below for formatted output
    I have not received any feedback on this - it is off by default.
    The code below(1) shows output before and after this option is applied uses the test PLSQL code already in the screens for setting the formatter options.
    -Turloch
    SQLDeveloper Team
    (1)Code after and before formatting follows:
    After:
    /* Comment... embedded in double quotes "select embedded_double_query from mytable" */
    /* Embedded in single quotes 'select embedded_single_query from mytable' */
    CREATE OR REPLACE
    PACKAGE BODY test1
    IS
      g_column1               VARCHAR2(17) := NULL;
      g_column2               VARCHAR2(52) := NULL;
      g_column3_from_column22 VARCHAR2(25) := NULL;
      g_column_4711           VARCHAR2(11) := NULL;
    FUNCTION testfunction(
        p_column12 IN VARCHAR2)
      RETURN VARCHAR2
    IS
    BEGIN
      IF NVL(g_emplid1,'X') <> p_emplid THEN
        BEGIN
          FOR emp_rec IN c_empl
          LOOP
            --Align on comments example
            SELECT 1
            INTO var
            WHERE EXISTS
              (SELECT col1, -- first field
                longcol2,   --second field
                midcol3,    -- 3rd field
              FROM tble1
              WHERE ((1 +1)=2)
              AND (22222*3 = 44)
            -- align || at end of line example
            SELECT 1
            INTO var
            WHERE EXISTS
              (SELECT col1 || longcol2 || midcol3 || col4 , col1 FROM tbl
            IF emp_rec.empl_rcd# > 0 THEN
              INSERT
              INTO table1
                  col1,
                  col2,
                  col3,
                  col4,
                  col5,
                  col6,
                  col7
              SELECT price.col1 AS col1,
                price.col2      AS col2,
                price.col3      AS col3,
                MAX(price.col4) AS col4,
                MAX(price.col5) AS col5,
                MAX(price.col6) AS col6, -- comment1
                MAX(price.col7) AS col7
                /*  comment2 */
              FROM
                (SELECT store.column1,
                  -- =========================================
                  -- =========================================
                  CAST (store.column2 AS INTEGER) AS column2,
                  store.column3,
                  store.column4,
                  store.column5,
                  SUBSTR(store.column6,11,1) AS column6,
                  store.column7              AS column7
                FROM
                  (SELECT library.column1,
                    library.column2,
                    library.column3,
                    CASE library.column4
                      WHEN cheap
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS column4,
                    CASE library.column5
                      WHEN expensive
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS library.column6,
                    CASE column7
                      WHEN free
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS column7
                  FROM
                    (SELECT INTEGER(SUBSTR(onelibrarysales.column1,11,10)) AS column1,
                      SUBSTR(onelibrarysales.column2,21,10)                AS column2 ,
                      onelibrarysales.column3,
                      onelibrarysales.column4,
                      SUBSTR(onelibrarysales.column5,31,6) AS column5,
                      SUBSTR(onelibrarysales.column6,37,2) AS column6,
                      SUBSTR(onelibrarysales.column7,39,6) AS column7
                    FROM
                      (SELECT alllibrarysales.column1,
                        alllibrarysales.column2,
                        MAX(alllibrarysales.column3)                                                                                                                            AS alllibrarysales.column3 ,
                        MAX(CHAR(alllibrarysales.column4,iso) concat CHAR(alllibrarysales.column5,iso) concat digits(alllibrarysales.column6) concat (alllibrarysales.column7)) AS column5
                      FROM
                        (SELECT libraryprod.column1,
                          libraryprod.column2,
                          libraryprod.column3,
                          libraryprod.column4,
                          libraryprod.column5,
                          libraryprod.column6,
                          libraryprod.column7
                        FROM
                          (SELECT tv.column1,
                            tv.column2,
                            MAX(digits(tv.column3) concat digits(tv.column4) ) AS librarymax
                          FROM db1.v_table1 tv
                          WHERE tv.column1 <> 'Y'
                          AND tv.column1   IN ( 'a' , '1' , '12' , '123' , ' 1234' , '12345' , '123456' , '1234567' , '12345678' , '123456789' , '1234567890' , '1 12 123 1234 12345 123456 1234567 12345678' , 'b' , 'c' )
                          AND tv.column2   >= DATE(tv.column4)
                          AND tv.column3    < DATE(tv.column15)
                          GROUP BY tv.column1,
                            tv.column2
                          ) AS libraryprod,
                          db1.table2 th
                        WHERE th.column1 =libraryprod.column1
                        AND th.column2   =libraryprod.column2
                        ) AS alllibrarysales
                      GROUP BY alllibrarysales.column1,
                        alllibrarysales.column2
                      ) AS onelibrarysales
                    ) AS library
                  LEFT OUTER JOIN db1.v_table3 librarystat
                  ON librarystat.column1    = library.column1
                  AND librarystat.column2   = library.column2
                  OR ( librarystat.column4  = library.column4
                  AND librarystat.column5   = library.column5 )
                  AND ( librarystat.column5 = 'I'
                  OR librarystat.column4    = 'Gold'
                  OR librarystat.column5    = 'Bold' )
                  AND librarystat.column6  <= 'Z74'
                  ) AS x
                ) AS price
              WHERE price.column1 < 'R45'
              OR ( price.column2  = 'R46'
              AND price.column3   = 6 )
              GROUP BY price.column1,
                price.column2,
                price.column3,
                price.column4,
                price.column5,
                price.column6,
                price.column7 ;
            END IF;
          END LOOP;
        END;
      END IF;
    END testfunction;
    /*  Multi line comment */
    -- ** Several single line comments -
    END
    PACKAGE;
    Before:
    /* Comment... embedded in double quotes "select embedded_double_query from mytable" */
    /* Embedded in single quotes 'select embedded_single_query from mytable' */
    CREATE OR REPLACE
    PACKAGE BODY test1
    IS
      g_column1               VARCHAR2(17) := NULL;
      g_column2               VARCHAR2(52) := NULL;
      g_column3_from_column22 VARCHAR2(25) := NULL;
      g_column_4711           VARCHAR2(11) := NULL;
    FUNCTION testfunction(
        p_column12 IN VARCHAR2)
      RETURN VARCHAR2
    IS
    BEGIN
      IF NVL(g_emplid1,'X') <> p_emplid THEN
        BEGIN
          FOR emp_rec IN c_empl
          LOOP
            --Align on comments example
            SELECT 1
            INTO var
            WHERE EXISTS
              (SELECT col1, -- first field
                longcol2,   --second field
                midcol3,    -- 3rd field
              FROM tble1
              WHERE ((1 +1)=2)
              AND (22222*3 = 44)
            -- align || at end of line example
            SELECT 1
            INTO var
            WHERE EXISTS
              (SELECT col1 || longcol2 || midcol3 || col4 , col1 FROM tbl
            IF emp_rec.empl_rcd# > 0 THEN
              INSERT
              INTO table1
                  col1,
                  col2,
                  col3,
                  col4,
                  col5,
                  col6,
                  col7
              SELECT price.col1 AS col1,
                price.col2      AS col2,
                price.col3      AS col3,
                MAX(price.col4) AS col4,
                MAX(price.col5) AS col5,
                MAX(price.col6) AS col6, -- comment1
                MAX(price.col7) AS col7
                /*  comment2 */
              FROM
                (SELECT store.column1,
                  -- =========================================
                  -- =========================================
                  CAST (store.column2 AS INTEGER) AS column2,
                  store.column3,
                  store.column4,
                  store.column5,
                  SUBSTR(store.column6,11,1) AS column6,
                  store.column7              AS column7
                FROM
                  (SELECT library.column1,
                    library.column2,
                    library.column3,
                    CASE library.column4
                      WHEN cheap
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS column4,
                    CASE library.column5
                      WHEN expensive
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS library.column6,
                    CASE column7
                      WHEN free
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS column7
                  FROM
                    (SELECT INTEGER(SUBSTR(onelibrarysales.column1,11,10)) AS column1,
                      SUBSTR(onelibrarysales.column2,21,10)                AS column2 ,
                      onelibrarysales.column3,
                      onelibrarysales.column4,
                      SUBSTR(onelibrarysales.column5,31,6) AS column5,
                      SUBSTR(onelibrarysales.column6,37,2) AS column6,
                      SUBSTR(onelibrarysales.column7,39,6) AS column7
                    FROM
                      (SELECT alllibrarysales.column1,
                        alllibrarysales.column2,
                        MAX(alllibrarysales.column3)                                                                                                                            AS alllibrarysales.column3 ,
                        MAX(CHAR(alllibrarysales.column4,iso) concat CHAR(alllibrarysales.column5,iso) concat digits(alllibrarysales.column6) concat (alllibrarysales.column7)) AS column5
                      FROM
                        (SELECT libraryprod.column1,
                          libraryprod.column2,
                          libraryprod.column3,
                          libraryprod.column4,
                          libraryprod.column5,
                          libraryprod.column6,
                          libraryprod.column7
                        FROM
                          (SELECT tv.column1,
                            tv.column2,
                            MAX(digits(tv.column3) concat digits(tv.column4) ) AS librarymax
                          FROM db1.v_table1 tv
                          WHERE tv.column1 <> 'Y'
                          AND tv.column1   IN ( 'a' , '1' , '12' , '123' , ' 1234' , '12345' , '123456' , '1234567' , '12345678' , '123456789' , '1234567890' , '1 12 123 1234 12345 123456 1234567 12345678' , 'b' , 'c' )
                          AND tv.column2   >= DATE(tv.column4)
                          AND tv.column3    < DATE(tv.column15)
                          GROUP BY tv.column1,
                            tv.column2
                          ) AS libraryprod,
                          db1.table2 th
                        WHERE th.column1 =libraryprod.column1
                        AND th.column2   =libraryprod.column2
                        ) AS alllibrarysales
                      GROUP BY alllibrarysales.column1,
                        alllibrarysales.column2
                      ) AS onelibrarysales
                    ) AS library
                  LEFT OUTER JOIN db1.v_table3 librarystat
                  ON librarystat.column1    = library.column1
                  AND librarystat.column2   = library.column2
                  OR ( librarystat.column4  = library.column4
                  AND librarystat.column5   = library.column5 )
                  AND ( librarystat.column5 = 'I'
                  OR librarystat.column4    = 'Gold'
                  OR librarystat.column5    = 'Bold' )
                  AND librarystat.column6  <= 'Z74'
                  ) AS x
                ) AS price
              WHERE price.column1 < 'R45'
              OR ( price.column2  = 'R46'
              AND price.column3   = 6 )
              GROUP BY price.column1,
                price.column2,
                price.column3,
                price.column4,
                price.column5,
                price.column6,
                price.column7 ;
            END IF;
          END LOOP;
        END;
      END IF;
    END testfunction;
    /*  Multi line comment */
    -- ** Several single line comments -
    END
    PACKAGE;

  • Searching for String literals in a ResultSet

    Hi! I am currently working in a little project in which one functionallity should be the possibility to search for customers over a special dialog. This dialog consists of a JTextField and a JTable. Now when the user enters e.g. 'a' in the textfield all the customers which include an 'a' at the beginning of their name should be displayed in the JTable. When the user enters a 'b' addtionally all users which fit the condition 'ab' are shown. Currently I requery the DB every time a key is pressed. But this is not very performant over the network. Is there a way to store a buffered ResultSet in RAM and make queries on this ResultSet?
    Thx

    ...but there must be a easier way to deal with it!Either you have all the data in the GUI or you don't. If you have it there then you have to get all of it. And then do something with it. If you don't get it all, then you are going to have to do a query each time. There is no other solution.
    You could do a partial solution, for example do the first query after they type the first letter and then after that handle the data yourself.
    (Keep in mind that this sort of GUI is 'really cool' but generally serves no pratical purpose particularily for large businesses. Day to day work doesn't support such usage.)

  • Search for strings inside html tags ?

    Is there any way to get Spotlight to find search strings inside html documents? One example is I want to find any file that includes a certain alt=" " string inside an img src tag.
    Spotlight does not seem to include anything inside html tags in it's search, as far as I can tell.
    Am I missing something? Is there something I need to do?
    Thanks for any ideas,
    KarenD
    G5   Mac OS X (10.4.4)  
    G5   Mac OS X (10.3.5)  

    Very strange--it does find text inside the html files, but indeed does not seem to have text that is in the file but only appears within a tag. The solution is EasyFind by Christian Grunenberg:
    http://www.grunenberg.com
    You can do a content search on files in a particular folder, which I recommend since it does a brute force search and can take awhile if it has to search everything.
    Francine
    Schwieder

  • Searching for String in Vector

    I know I posted just a few minutes ago about sorting, but I'm making a program (not related to homework at all, this is all for my parents business) and my program needs to store names and fetch them. We have thousands of people in our contacts so it's only logical that I would provide searching so that my mom could easily find a contact she is looking for.
    The contacts are stored in a vector, first name, last name, address, etc. I want to provide a search function that can search the names, or addresss, or both. Then, when a match is found, it returns the results to a JList or something.
    Search Text: "St. Marie"
    Results:
    1. St. Marie, Josh
    2. St. Marie, Someone
    etc etc...

    My program uses files, it uses the files to populate the vector. I'm using a vector, not an array or anything else to access the data in the files. heres a sample of the save method in my program.private void saveContacts ()
          FileOutputStream fos = null;
          try
              fos = new FileOutputStream ("contacts.dat");
              DataOutputStream dos = new DataOutputStream (fos);
              dos.writeInt (contacts.size ());
              for (int i = 0; i < contacts.size (); i++)
                   Contact temp = (Contact) contacts.elementAt (i);
                   dos.writeUTF (temp.fname);
                   dos.writeUTF (temp.lname);
                   dos.writeUTF (temp.phone);
                   dos.writeUTF (temp.fax);
                   dos.writeUTF (temp.email);
          catch (IOException e)
             MsgBox mb = new MsgBox (this, "CM Error",
                                     e.toString ());
             mb.dispose ();
          finally
             if (fos != null)
                 try
                     fos.close ();
                 catch (IOException e) {}
       }The variable "contacts" is my vector.

  • Search for string and replace with frame break

    Hello there,
    We're using an InDesign CS6 Server for creating print data. The problem relates to our documents that consist of several connected text frames.
    Situation:
    The texts are exported from our database into InDesign via xml and so some automated editing in javascript. These texts contaion several paragraphs with headlines. Sometimes after the import the layout just looks bad, because the first textfield contains the fist paragraph and the headline of the second paragraph including some lines of text. Sometimes this behaviour is desired and sometimes not.
    Workaroud:
    We definde the string #*# to be our placeholder for line breaks. During the creation of the xml this string gets replaced by unicode for the hard line break (&#xA;).
    Desired Solution:
    This workaround has some disadvantages and we want our placeholder string to be translated to a frame break.
    Until now I have neither found any definition for the unicode translation of the frame break nor a script based solution that just replaces this string with a frame break. any help is appreciated.
    Regards

    Instend of define string add attribute in xml or DB
    e.g attribute name frame break="frame break"
    after that through find the attribute get the insertion ponint and apply "SpecialCharacters.FRAME_BREAK"

  • Search for String patterns in a Database table

    Hi
    There is a select statement using where condition with a like statement
    WHERE table1  <> 'JP'
                 AND (
                     ( field1 LIKE '%:%' OR field2 LIKE '%:%' )
          It fetches records where the field field1 or field2 has string:string as value where string is some set
    of   characters . What is  the equivalent of LIKE in se11 / se12 .
    Thanks in advance .
    Geethanjali

    Hello
    Try

  • Dreamweaver cs5.5 opening files after searching for text code

    This just occured this afternoon.  I was working on a page and when I went to search for text in the code (ie "/head") dreamweaver would open a previously opened page.  In other words I was working on "walk.php" and when I did the search for "/head", dreamweaver opens "add_rsurvey_data.txt".  I know what the 2nd file is but I haven't opened it in months.  It's just a temp data file that my partner sent me.
    I'm using cs5.5
    Adobe will not help me.
    Thanks
    Glenn

    We don't get attachments from email replies here.  You would need to use the Camera icon in the actual web forum to a post screen shot.
    If this began yesterday, try deleting your Cache & restarting DW.
    http://forums.adobe.com/thread/494811
    Nancy O.

  • Spotlight cannot search for type & creator codes?

    I want to find some old ClarisWorks documents that I know are on my computer somewhere. Simple, I thought: Just search for documents dated before 2000 with creator code BOBO. But looking through the list of search parameters in Spotlight, I don't find either type or creator code. I know Mac OS X no longer uses these metadata, but they can still be useful, as in cases like this. Am I missing something? Is there a way for Spotlight to search on type & creator codes?

    Thanks for the response. I solved my problem by just looking through folders of old files and checking dates of those with AppleWorks icons. Very 21st century. I knew there must be some reason I thought I could do such a search, so I fired up my old 'Pismo' PowerBook and indeed, the Finder search utility in 10.3.9 allows searching for Type and Creator codes. It also will search only on those codes, or on a date or other parameter; while with Spotlight I could find no way to search for, say, all files dated before 1/1/1999 -- it requires something entered in the top field, i.e. a word to search for either in the file's contents or its name. So I put in "the" and got a lot of results, but of course minus any file that doesn't contain "the". Not so smart.
    I've never much liked Spotlight, which is way overkill for 95+% of the searching I do; I almost never used it in 10.4 (used Easy Find); in 10.5 at least it's fast enough to not be a major annoyance, though the fact that I can't make "File Name" the default requires me to keep a Spotlight window open in the Finder all the time (or have to manually click on "File Name" every time I want to do a search). Sure it's nice to be able to search the contents of files -- when I need to, but that's almost never. Meanwhile, Spotlight remains far inferior in simple, day-to-day usability to 10.3's Find utility.
    So how do you find out how to do such a "Raw Query" search? "kMDItemKind" is not an immediately intuitive term, at least for ordinary mortals such as myself.

Maybe you are looking for

  • How do I delete files on my PC but save them in my ipod

    Sorry if this seems like a stupid question, but I've just bought a fifth generation ipod and I'm very much a newbie. I understand that the ipod automatically updates itself when I connect it to Itunes. If I delete files completely from Itunes and my

  • Why do the e-mails in my BT Yahoo inbox marked as read when the e-mail is delivered to my iPad mini?

    Why do the e-mails in my BT Yahoo Mail inbox mark as "read" when the e-mail is delivered to my new iPad mini..?

  • Scheduling custom BDC report as a job....

    Hi, I want to generate a background Job for a custom BDC ABAP report. I am going to transaction SM36, entering name of Job -> Job class as 'C' ->  enter. But after I provide name of the program, it also has a field called variant. What do I enter the

  • Approvals for Service Document

    Experts, I am trying to write a query to use in an Approval Template, that will activate when the user enters an AP Invoice with a document type of Service. Thanks, Peter

  • Use of show_view

    I'm using the SHOW_VIEW command to display some stacked canvases on a window. They are for information only so have no input fields. What I am finding is that a canvas appears if I issue SHOW_VIEW from a checkbox trigger but when I issue it from a bu