How can I use SQL to get a model in a field?

Hello, Frank, Solomon, ect

I am now faced with this particular scenario, I've got SQL to browse a field to search for text in the field, but I need to know what that is before he can look for her.

What I have to do is the following:

Searching through a field, a model and I do not know what data I'm looking for. Is it possible in SQL?

For example, here is my SQL date, I was helped allocate in order to get to this point.

Select table_name,

column_name,

: search_string search_string.

result

from (select column_name,

table_name,

"ora: view("' ||) " table_name | "") / LINE /' | " column_name | "[ora:contains (text ()," %' |: search_string | ")]. (%») > 0]' str

CLO

where table_name in ("TABLE1", "TABLE2")).

XMLTable (columns str result varchar2 (10) path '.')

When you run the SQL code above, you must pass a value. What I really need, is to modify the SQL code above, to make searching for a model which exist in the text of the field itself.

"" As for example, lets say that the model that I'm looking for is - this "xxxxx-xx-xxxx" and it's somewhere in a field.

I need to change the SQL to this model and searching through all the diagrams and tables to look for this pattern match.

Can we do?

SYS@ORCL > CREATE USER IDENTIFIED BY test test

2.

Created by the user.

SYS@ORCL > test ALTER USER QUOTA UNLIMITED ON USERS

2.

Modified user.

SYS@ORCL > GRANT CREATE SESSION, CREATE the test TABLE

2.

Grant succeeded.

SYS@ORCL > GRANT SELECT ON dba_tab_cols TO test

2.

Grant succeeded.

SYS@ORCL > CONNECT test/test

Connected.

TEST@ORCL > SET LINESIZE 90

TEST@ORCL > find_test CREATE TABLE

2 (find_col VARCHAR2 (60))

3.

Table created.

TEST@ORCL > INSERT ALL

2. IN find_test (find_col) VALUES ('' 111-22-3333)

3. IN find_test (find_col) VALUES (111 = 22-3333')

4. IN find_test (find_col) VALUES ('' 111-A2-3333)

5. IN find_test (find_col) VALUES ('' 111-22-33339)

6. IN find_test (find_col) VALUES ('' 111-2-23333)

7. IN find_test (find_col) VALUES ('77-777-7777 "")

8 SELECT * FROM DUAL

9.

6 rows created.

TEST@ORCL > search_string VAR VARCHAR2 (28)

TEST@ORCL > EXEC: search_string: = ' ^ [0-9]{3}-[0-9]{2}-[0-9]{4}$']

PL/SQL procedure successfully completed.

TEST@ORCL > COLUMN "Keyword" FORMAT A28

TEST@ORCL > COLUMN 'Table' FORMAT A9

TEST@ORCL > COLUMN ' column value / "FORMAT A50

TEST@ORCL > SELECT DISTINCT SUBSTR (: search_string, 1: 28) "keyword."

2 SUBSTR (table_name, 1, 14) "table."

SUBSTR (t.column_value.getstringval (), 1, 50) 3 ' / value of the column.

4 FROM dba_tab_cols,

TABLE 5

6 (XMLSEQUENCE

7 (DBMS_XMLGEN. GETXMLTYPE

8 ("SELECT" | column_name |)

9               ' FROM ' || table_name |

10' WHERE REGEXP_LIKE

11 (' | column_name |) ','''

12                    || : search_string. ''')'

(((13) .extract (' LINES/rowset / * ""))) t

14 WHERE table_name IN ("FIND_TEST")

15 ORDER BY "Table".

16.

Table of the help of keyword/value of the column

---------------------------- --------- --------------------------------------------------

FIND_TEST ^[0-9]{3}-[0-9]{2}-[0-9]{4}$ 77-777-7777

FIND_TEST ^[0-9]{3}-[0-9]{2}-[0-9]{4}$ 111-22-3333

2 selected lines.

Tags: Database

Similar Questions

  • How can I use SQL to check the Version of Oracle Forms and object of the request?

    Hi all:

    How can I use SQL to check the Version of Oracle Forms and object of the request?





    Concerning
    Terry

    Terry,

    See the following threads/docs for the version of forms.

    How to find the developer version
    Re: How to find the developer version

    Note: 466890.1 - Script to find the Apache, Java, Jinitiator, version of forms and details of the JVM for Oracle E-Business Suite 11i
    Note: 392793.1 - how to get Forms Oracle Oracle Applications 11i Command Line Version
    Note: 468311.1 - Script to find the Apache, Java, JRE, Forms for Oracle E-Business Suite R12 version

    What purpose are you talking?

    Thank you
    Hussein

  • How can I use SQL/CUBE to figure out total?

    How can I use SQL/CUBE to figure out total?

    Thank you.
    -JC

    Of course, you can do this by using the cube. But cube will produce all the possible combinations of summary. We can filter the unnecessary summariies having clause using the group_id function which is a binary encoding of the columns that are summarized. Below for example, as applied on the table SH.sales.

    Select channel_id, promo_id, prod_id, sum (amount_sold)
    from the sale
    Group of cube (channel_id, promo_id, prod_id)
    having grouping_id (channel_id, promo_id, prod_id) (3, 5, 6, 7)

  • How can I use SQL to check if the receipt is taken into account?

    Hi all:
    How can I use SQL to check if the reception of the AR is taken into account? Because there are so many recipes to check, I can not open to see the details one by one.

    My environment is: 11.5.9
    database: Oracle 9.2.0.8

    Terry,

    Run the script (11i: Oracle receivables data reception Data Collection Test [215969.1 ID]) and see if it helps.

    Thank you
    Hussein

  • How can I using an apple extreme get a better signal around the House?

    How can I using an old apple extreme get a better signal around the House?

    I use an old apple express and a new express from apple.

    I need to update my extreme from apple for the last device namely a time capsule.

    Can I use my apple extreme connected to my new camera add more points around the House?

    What is the model number of the old AirPort Extreme?

    What is the model number of the old AirPort Express Terminal?

    We assume that the model number of the new AirPort Express Terminal is A1392, correct?

    What connects to what now on your network?  It looks like this?

    Internet connection > Modem > new AirPort Express?   How the old Express connects to the new Express?   Cable?  Wireless?

  • How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Hello

    How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Thank you

    Jay.

    Select the connection and right-click on it and select schema statistics collection

  • How can I use variable presentation logic SQL

    Hi Experts,

    How can I use variable SQL logical presentation. I need the exact syntax. Kindly help me to achieve this goal.

    "Time". "" Date "between the Date of 2014 '-1-17 'and Date' ' 2014-2-16

    Thanks in advance

    Asim

    It's done... We can use it in the logical query with the same syntax where we use in converting this filter as SQL...

  • Hello my name is jose and I would like to know how can I use the adobe CAMERA RAW bridge because the use of bridge and the desire to open a raw image of the camera, I get a message that says: BRIDGE HAND aplicaion NOT ACTIVE. BRIDGE REQUIRES THAT A PARTIC

    Hello my name is jose and I would like to know how can I use the adobe CAMERA RAW bridge because the use of bridge and the desire to open a raw image of the camera, I get a message that says: BRIDGE HAND aplicaion NOT ACTIVE. BRIDGE REQUIRES THAT A PARTICULAR PRODUCT HAS STARTED AT LEAST ONCE THIS FEATURE. I wonder what that means?

    I use a 64 - Bit lapto operating system (windows 7).

    Thank you

    my email is: [email protected] If you send me the answer to my query

    You must activate Photoshop.

    Mylenium

  • How can I use After Effects filters on an entire sequence without getting stuck in After Effects?

    It seems that, with the visible options for the user, Dynamic Link will only one-way and can not do back and forth of Premiere Pro, After Effects and vice versa.  If I send a sequence in After Effects, this part works very well and I can do whatever I want and save the model.  However, even if the model appears as an asset in Premiere Pro, I'm not allowed to do something with it.  If I try to drag it to a new sequence, he said only: No..  If I click on 'Create the sequence of the Clip' it creates an empty sequence.

    So, how can I use After Effects on all the clips/tracks instead of just on a clip-by-clip-by-clip-by-clip-by-clip basis?  is this possible?  For example, if I have an entire sequence where I neutralized the white balance, I might want to apply a filter of global warming to the whole thing as a unit.  It would be really painful with even a few clips to keep doing that over and over again, and if you want to modify it slightly you can do again and again.  If there is a way to do this through dynamic links through a hidden option, what is happening with the audio?  If I have to cut out of the lower sequence and paste it into the upper sequence with the After Effects comp as a video track?

    When I said 'export', I meant 'Replace with After Effects Composition'!

  • How can I use my photo albums as screensaver with Apple TV 4th gen

    How can I use a photo album that I created as a screensaver on the generation of Apple TV 4 because it is not an option in this sense?

    What follows is the Apple TV 4 user guide...

    Screensavers

    Apple TV displays a screen saver when it remains inactive for a predefined number of minutes.

    Air screensaver shows beautiful videos of slow motion of the places of the world, upload to an online server, making the screen saver more engaging and dynamic. For the antenna, you can control how many times Apple TV check and download new videos.

    Change the frequency of aerial screensaver download. In settings, go to general > screen saver and select Download New Videos, and then select an option.

    Return by using Apple TV. When the screen saver is active, press the contact surface to get to some app have been previously using.

    Choose a different screen saver. In settings, go to general > screen saver and select the Type. Then select the screen saver you want to use.

    Select the photos to display. Many of the screen saver options display a slide show of photos - it can include photos provided by Apple, or your own collection stored in iCloud. To choose which photos are used, in the settings, go to general > screen saver and select the Type. Then choose one of the types of screensaver-photographers.

    If you choose my Photos, the Photos app opens. Follow the instructions to put photos as screensaver.

    Set the screensaver time-out. In settings, go to general > screen saver and select the setting starts after, and then specify a number of minutes. This indicates to the Apple TV to start the screen saver automatically if the unit has been idle for the specified time.

    Activate the screen saver immediately. Press the Home button to go to the home screen (if it isn't already), and then press the button twice.

  • How can we use this page Windows Genuine?

    How can we use this page once the developers of Firefox has removed the option "Enable Java"?

    Now, I downloaded this tool to check if the Windows Genuine or not! But kept getting the error message during the installation of the application.

    This is not sound/look like a problem of firefox at all, but could be a problem with the integrity of your windows system (perhaps related to malicious software): http://support.microsoft.com/kb/2617842/en-us

  • I bought an iphone 4 on ebay but it's locked, icloud so I am not able to use it, and the previous owner is available to remove the device from their account: How can I use the appliance?

    I bought an iphone 4 on ebay but it's locked, icloud so I am not able to use it, and the previous owner is available to remove the device from their account: How can I use the appliance?

    You can not. Try to return the unit and get your money back. There is absolutely no way for you to unlock the device,

  • How can I use Office Update without the Office CD?

    How can I use Office Update without the Office CD? On the microsoft Web site, I clicked the options which mean that I would not need the CD (which was not provided with the laptop), but poartway through the service pack update, I get a request for the Office 2000 Professional CD.

    Any suggestions?

    Hello

    Did you mean an office or a note?
    As far as I know the a Note is part of the recovery Image and the CD is not supplied with the unit. In addition, Toshiba units are not delivered with the Office 2000 software.

    However, have you checked to aid either in Word update function?

    You will find an option called verification of updates
    http://Office.Microsoft.com/en-us/officeupdate/default.aspx

    Good bye

  • How can I use the AppleCare with replacements USA helmet in Israel?

    How can I use an AppleCare with replacements USA headphones for my iphone in Israel 6plus? Am I covered overseas?

    Technically, no. The warranty is valid only in the country where the phone was originally sold. However, that restriction is based on the differences between the models of phones sold in different countries and the availability of substitutes service. You may very well be able to get the headphones replaced here since there is no difference between those who were included in phones AND those that are included with the phones sold in your country. Make an appointment at the genius bar or take it to your local CENTER and see what they can do for you.

  • How can I use an ipod nano that was synched to another computer?

    My daughter gave me his 2nd generation ipod nano because it is no longer use it.  When I plugged in my USB to load, I got a message informing me that there is an update.  It would not be updated beause "ipod cannot be updated because it contains files that are used by another application."

    What should I do to be able to use this ipod nano?

    I don't think that this message is related to the iPod is synced to another computer...  It is usually other applications or processes on the computer (which is not iTunes) accessing the iPod for some reason if iTunes is not able to perform the update.  However, your question in the subject heading ("How can I use an ipod nano that was synched to another computer?") is valid, since the iPod was previously used by someone else, with a different iTunes library.

    If you want to start using this iPod with your iTunes library and put on your songs, instead of doing an Update, you need to restoreThis erases the iPod, reinstalled the latest version of the software, and sets it to the default settings.  The iPod gets a 'new beginning', as when it was new.  To resolve the problem with this "files in use by another application" error message, try restarting your computer.  Immediately after the computer finishes starting up, run iTunes, plug in the iPod (if it isn't already) and try to do the restore (or Update).  If you still get this error message, please after return.

    If you are restoring, you can configure it to sync with your iTunes library.  You can post back, if you need advice on options for the implementation.

Maybe you are looking for

  • Tecra M10 - light screen problems

    Hi guys,. at first I m sorry for my English is not perfect. That is the problem. When I created the brightness on my screen on max, everything is OK.But when I put it down to minimum, after awhile the diodes (or bulbs) stop working. I think there are

  • Why in a memory, i've got 930 GB of free space, but applications deal with 250 GB?

    I have a little problem. When I open "My Mac" > "Space of memory", I see 930GB free space but the applications have 250 GB. I don't know how much space I have on my mac. Reset the computer does not resolve the problem.

  • IE 8 in Windows 7 KB2416400 update

    Have tried several times to laod this udate KB2416400 for IE8, Windows7, to lose access to Internet Explorer after that update is loaded.  If the update is uninstalled, I regain access to EI.  Nobody seems to know what is the problem. Called HP, they

  • DLA blocked due to compatibility issues

    DLA blocked due to compatibility issues

  • lost my eprint address

    does anyone know how to re - print printers for a deskjet 3050 a email address