Looking for a keyword using as a query that could contain several appearance in the same column

I am facing a problem. A bunch of my JSP frontend code was stored in a few tables in my database (65 rows in a table), I have identified using a few queries. Now, I want to update a Href link, which is present in all of these motions. But since these entries in the column are very long (50 to 60 lines long) and it is possible that some lines may the link (which must be replaced), several times, I'm not sure if a query updated simple using a only as will work for her or not?

Any suggestion/ideas are welcome.

Please let me know if you need more info.

Hello

e5d4d744-cf66-4FE0-8353-bbd8fd826b21 wrote:

I am facing a problem. A bunch of my JSP frontend code was stored in a few tables in my database (65 rows in a table), I have identified using a few queries. Now, I want to update a Href link, which is present in all of these motions. But since these entries in the column are very long (50 to 60 lines long) and it is possible that some lines may the link (which must be replaced), several times, I'm not sure if a query updated simple using a only as will work for her or not?

Any suggestion/ideas are welcome.

Please let me know if you need more info.

Yes; whenever you have a problem, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements), so that people who want to help you can recreate the problem and test their ideas.

Also post the results you want from this data, as well as an explanation of how you get these results from these data, with specific examples.

Simplify the problem as much as possible.  For example, if your strings are sometimes up to 4000 characters, you don't have to display all of the data that is almost as long.  You can probably show you want with strings that are 80 characters long.

Always say what version of Oracle you are using (for example, 11.2.0.2.0).

See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

This statement:

UPDATE table_x

SET str = REPLACE (str

old_link

new_link

)

WHERE str LIKE "%" | old_link | '%'

;

will change all the occurrences of old_link to new_link.  It will only change the lines where old_link occurs, but, aside from that, regardless of how many times old_link occurs in str: if it appears 2 times in the same str, two occurrences will be changed in new_link.

Watch out for the problem ' mother is in chemotherapy.  If old_link is 'bar.com', the above statement will change "a".  You may need to REGEXP_REPLACE or REGEXP_LIKE if you need to consider what (if any) comes immediately before "bar.com' to decide or not to change it.

Tags: Database

Similar Questions

  • I want to create a new look for our website using Muse and move the hosting of GoDaddy for Business Catalyst. How can I publish my new Muse on exsiting URL design and change hosting?

    you want to create a new look for our website using Muse and move the hosting of GoDaddy for Business Catalyst. How can I publish my new Muse on exsiting URL design and change hosting? @@

    Hi love,

    You can publish your Business Catalyst, simply open your file of muse and select files-> publish.

    Please refer to this tutorial:- publish your site with Adobe Web Hosting | Learn the Muse | Adobe TV

    In addition, once your site is published, you can add your domain to your site hosted on BusinessCatalyst.

    Please refer to this tutorial to add your domain name:- http://helpx.adobe.com/business-catalyst/using/change-site-domain.html

    Hope this helps

    Kind regards

    Rohit Nair

  • When I look for a file in Win Explorer, I get a list of files in the search results. But some of the files seem to be missing. I get a message that the directory is not found when I try to open the search results.

    I wonder if what's on my hard drive and if what Win Explorer is on my hard drive are two different things.

    If I do a search in Win Explorer to "purple", I get a number of results.
    (To search for a file, I am in the word "Purple" in the search field in the upper right Win Explorer and pressing the "Enter" button).

    There are a couple of JPG files that I wonder about the search results.
    One example is called "purple_flowers.jpg".
    When I double-click this file in the search results to open it, my paint program opens and gives me a message that the directory is not found. If I use MS Paint to try and open it by double-clicking on the file and selecting "open with...". MS Paint", I get a message that the directory is not valid.

    The location of the directory on the error message is the blue 'Images' folder for my user. But, when I opened this file, I don't have a file with that name in this directory. The same thing happens with another JPG file, called "octopus.jpg" when I search the word 'Octopus '.

    Is this something messed up between what I have on my hard drive and think what Win Explorer is on my hard drive?
    How can I fix?
    Something must be reset in Win Explorer?

    I could have the JPG files with these names at the same time. I had a large library of images for a project, but I deleted it.
    (I tried to turn on the option to show hidden files in this directory, but that did not help).

    Imane:

    I thank very you much for that answer.
    But it seems to have stumbled on the solution:

    Strangely, this worked:

    (Maybe you know why).

    I moved the files in my blue images folder in another folder, delete the folder images blue, emptied the Recycle Bin and rebooted my computer.
     
    When my computer has finished its startup routines, my folder of photos blue was there! And he had the shortcut to the folder 'Sample Pictures' inside.
     
    When I searched "the Octopus" and "purple", I no longer saw these JPG files in the search results.
     
    I don't really know what happened, but I thought that after these results just in case someone else knows this.

    I'll read and watch in your information. I don't want to know more about what is happening in my computer.

    Marz

  • Pair several devices on the same COM Port that use the stack for windows by toshiba bluetooth?

    I have several instances of the same device...

    I wish that they all use the same COM Port when connecting to my Toughbook.
    The application that will receive data from these devices will only monitor a single COM Port assigned to.

    I have only one active connection both for couples... That's why Ifeel, this should be possible.

    Any help would be greatly appreciated

    Thank you

    Hello

    Please contact the Microsoft Community Forums. I understand you want to pair multiple devices on the same COM Port using Bluetooth.

    Unfortunately, it is impossible to pair multiple devices on the same COM Port using Bluetooth as it is by design.

    With the help of Windows-related issues feel free to post on the Forums of community of Microsoft, we will be happy to help you.

    Thank you.

  • If I buy the adobe cc then can I use it on several laptops at the same time? I use two different computers for my work. as a photoshop and illustrator, for example.

    If I buy the adobe cc then can I use it on several laptops at the same time? I use two different computers for my work. as one for photoshop and Illustrator for example.adobe

    This excerpt from: terms of conditions of use Adobe software should help to clarify the terms for you:

    ..... You can activate the software on up to 2 devices (or virtual machines) at the same time, if these activations are associated with the same Adobe ID for the same person, except http://www.adobe.com/go/activation_fr. However, you cannot use the software on these devices simultaneously.

    You can also see:FAQ: where can I find the terms of membership and the terms of use?

  • How to use locate the if function several occurences of the same character

    I try to use the location feature to conclude to the existence of ' ~' in my thong. My channel has several occurrences of ' ~' in there.
    But the location always returns the location of the first. How can I get him back the second occurrence of ' ~' in the string.

    Thanks in advance
    Kris

    Published by: user566193 on October 1, 2010 13:35

    OK, it's not pretty, but it works... I will describe the step-by-step process.

    Getting the first Occurrence

    (1) on the column that you want to find the tilda (~), click the fx button.

    (2) use the LOCATE function: LOCATE ('~ ', tablename.columnname)

    It's will give you the position of the first occurrence of the tilda number.

    Getting the second Occurrence

    (3) in order to find the location of a string in another string from a set position, you use the same function, but in this format: LOCATE (string1, string2, n)

    Note: If you look at the function OBIEE, it says to use LocateN, but actually, it does not work and you will get a syntax error, so use LocateN. Use instead SEE them as I've described, but with the same syntax as in the LocateN function.

    Well, in this function, the value of n must be value just after the first occurrence to find the second occurrence.

    The first occurrence is determined by the LOCATION feature in step 2, we simply need to 'Add 1' to the obtained position. It turns out however that the result of the LOCATION works, although this property returns a number isn't a number format. Therefore, we have to GET the result as an INTEGER. (Still with me? Good.)

    OK, so putting this together, we nest a function LOCATE in a LOCATION feature as follows:

    LOCATE ('~ ', tablename, columnname, CAST (LOCATE('~', tablename.columnname) AS INTEGER) + 1).

    The above formula will give you the second occurrence of your tilda. You can repeat this step for the third, etc.

  • I use windows 7. How to change and be sure the default column width in Windows Explorer

    I use windows 7. How to change and be sure the default column width in Windows Explorer

    Hi Jimsw,

    ·         If it works well before?

    ·         You did changes to the computer before the show?

    Explorer Windows will remember changed settings, check if this not happen as planned.

    Follow the suggestions below for a possible solution:

    Method 1: I suggest running the fix of the article and check if it helps.

    Diagnose and repair Windows files and folders problems automatically

    http://support.Microsoft.com/mats/windows_file_and_folder_diag/

    Method 2: You can increase the width of the selected columns and apply the settings to all files and check.

    a. right click on an empty space in the Windows Explorer, click on sort by.

    b. now, enter the size required in the Pixel with and click OK.

    Now, click on the drop down menu to organize and click on folder and Search Options.

    Click view and click apply to folders and click OK.

    I hope this helps.

  • I want to create an interactive page or file in Muse for anyone to connect and enter information, close and someone else can do the same thing, etc.  Is this possible?

    I want to create an interactive page or file in Muse for anyone to connect and enter information, close and someone else can do the same thing, etc.  Is this possible?  I want to have spaces at least 10 names to register.  These people need to log on to this page or file to use it or to see it.

    Help with the help of Adobe Muse CC

    Impossible to establish such a thing with the HTML and the CSS just as Muse creates it. You need a dynamic system like Wordpress, Joomla, or the plans Business Catalyst paid Typo 3 etc...

    Mylenium

  • Why use push and pop where addChild and removeChild can do the same work?

    Why use push and pop where addChild and removeChild can do the same work?

    What is the advantage of the push and pop on addChild and removeChild?

    It depends on what you're trying to accomplish. If you explain more about under what circumstances you would use them, a more definitive answer can be provided.    Push and pop of the work for arrays.  addChild and removeChild work for displayObjects.

  • Multiple values for the same column in the columns of diffétent in the same row?

    Hi all
    I wonder how you can display different values for the same column in different columns on the same line. For example, using a CASE statement, I can:

    CASE WHEN CODE IN ('1 ', ' 3') THEN COUNT (ID) AS 'Y '.
    CASE WHEN CODE NOT IN ('1 ', am') THEN COUNT (ID) AS "N".

    Yes, that will produce two columns but will produce null values to empty and also two separate registers.


    Any ideas?

    Thank you

    Are you sure that this code works for you?

    Select ID
             ,CASE WHEN MODE_CODE IN ('1', '3') THEN COUNT( No) END as "Fulltime"
             ,CASE WHEN MODE_CODE NOT IN ('1', '3') THEN COUNT( No ) END  as "Other"
    From table
    group by ID
    

    I guess the code above fails because MODE_CODE is not in your group by?

    My suggestion would be to put the CASE in the COUNT:

    Select ID
             ,COUNT(CASE WHEN MODE_CODE IN ('1', '3') THEN No END) as "Fulltime"
             ,COUNT(CASE WHEN MODE_CODE NOT IN ('1', '3') THEN No END)  as "Other"
    From table
    group by ID
    

    CASE expressions return no. when the respective conditions are true and NULL otherwise.
    COUNTY will have non-null values.

  • How to use develop/Tone/Auto on several pictures at the same time?   v.1.4

    How can I use develop/Tone/Auto on several pictures at the same time?

    Highlighting multiple photos and clicking on it did not work for me, if I can get it to work on a single photo at a time.

    Method 1:

    1. Go to the develop module
    2. Select the photos in the camera roll.
    3. Hold down the Ctrl key and click on the Sync button. He turns to auto sync.
    4. Now, whatever you do develop apply to all photos.
    5. Click on auto sync once more to turn off autosynching.

    Method 2:

    1. The display of the grid of Goto.
    2. Select the photos.
    3. Press Ctrl + U.
  • Recently bought studio 15 laptop with windows 7 and I try to run need for speed pc underground game on her, but she does not appear and the message "speed.exe has stopped working" appears on the screen

    Recently bought studio 15 laptop with windows 7 and I try to run need for speed pc underground game on her, but she does not appear and the message "speed.exe has stopped working" appears on the screen. can someone help us?

    Hi Andy,.

    I checked the reported compatibility list, and the game is listed as compatible.  Work in 64-bit or 32-bit Windows 7?  I will try to reinstall the game, if you did an upgrade from Vista to Windows 7 recently.  If it is a new installation and does not, please visit the EA's Web site to get the latest patch for the game to see if that helps address your problem.  Let me know if you've done all that and you still have questions, and we can try something else.

    Kevin

  • Receive the error message "the server that you are connected using a security certificate that could not be verified that the certificate CN name does not match the passed value.

    Prob Winmail.

    Receive the error message "the server that you are connected using a security certificate that could not be verified that the certificate CN name does not match the passed value. Do you want to continue? ». This started happening after that my laptop has been reformatted. I have synced with Gmail winmail and followed the instructions to do this correctly. By pressing the tab 'Yes' allows me to use winmail, but it's a little embarrassing.

    Using a digital signature?  Check the settings under Tools | Options | Security and also tools | Accounts | Mail | Properties | Security.

    Also, see here (http://mail.google.com/support/bin/answer.py?hl=en&answer=86382) and make sure that your settings are correct.

    Steve

  • I've uninstalled and reinstalled the drive several times with the same result, my problem is when I download the drive icons for my browsers and above all my desktop icons change adobe logo, so when I click on them Adobe tries to open them.

    I've uninstalled and reinstalled the drive several times with the same result, my problem is when I download the drive icons for my browsers and changing most of my the desktop icons for the adobe logo, so when I click on them Adobe tries to open them, of course, he does not format because it's not an adobe application , so I tried to restore the computer to an earlier date and it wont let me as long as Adobe reader is installed, so I need to uninstall and now I have nothing to open files and downloads of Adobe, someone had this problem and if so, did you get it resolved? Thank you Tommy...

    This may help: Application, file icons change in Acrobat/Reader icon

  • I try Ben numbers several pdfs at the same time.  Once I did this, I'll and look and from the second page, the Ben numbers appear at the top and bottom.  I want only the bates numbers to appear at the bottom.  How can this be a gift

    I try Ben numbers several PDFs at the same time.  Once I have a result, from the second page, the Ben numbers appear at the top and bottom.  I want only the bates numbers to appear at the bottom.  How is that possible?

    Hey Bethany,.

    Please try again to implement numbering following the steps in article Acrobat bates help | Add headers and footers Bates numbering in PDF format

    Make sure that you apply for Bates numbering in the foot of page, as shown in the screenshot below.

    Kind regards

    Nicos

Maybe you are looking for

  • Skip the password when returning from sleep

    I'm really embarrassed to ask this question again. Shorlly after that I first set up my mini ipad4 I did something that allowed me to go to the lock screen directly without having to give a password every time the Ipad is awake or started cold...  Fo

  • Satellite L300-110 overheating when I play a game

    Hey, my Toshiba laptop is overheating these days. When he is on standbay, the laptop has ov 70 degrees Celzius, and when I play a game on there almost 90 degrees Celzius.I think the problem is the cooler, but I need your opinion on this issue. You ca

  • Disable the popup with the brightness of the screen/volume?

    How can I get rid of what will appear in the lower right.

  • OfficeJet Pro 6830: Officejet Pro 6830 does not print

    When I send the print job from my laptop to the printer (wirelessly), the screen of the printer say an impression with a symbol of loading, then makes the sound usually makes when printing is completed. But nothing comes out, I tried turning then onc

  • What is TrustedInstaller (spelled That Way)?

    I have a disk encrypted with all my personal files. However, I use the obsessive Sticky Notes. I posted here without result on the opening of Windows Live Mail in Truecrypt (nobody answered with a response satisfactory and feasible). Truecrypt offer