Looking for a keyword using like query which could contain multiple occurrence in the same column

I am facing an issue. A bunch of my frontend JSP code has been stored in few tables of my database (65 rows in a table), which I have identified using few like queries. Now I want to update a Href link which is present in all these queries. But since these column entries are very long (50-60 lines long) and it is possible that a few rows may the link (which is to be replaced), multiple times,  I am not sure that if a simple update query using a single like will work for it or not?
Any suggestion/ideas are welcome.
Please let me know if you require any more info.

Hi,
e5d4d744-cf66-4fe0-8353-bbd8fd826b21 wrote:
I am facing an issue. A bunch of my frontend JSP code has been stored in few tables of my database (65 rows in a table), which I have identified using few like queries. Now I want to update a Href link which is present in all these queries. But since these column entries are very long (50-60 lines long) and it is possible that a few rows may the link (which is to be replaced), multiple times,  I am not sure that if a simple update query using a single like will work for it or not?
Any suggestion/ideas are welcome.
Please let me know if you require any more info.
Yes; whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), so that the people who want to help you can re-create the problem and test their ideas.
Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
Simplify the problem as much as possible.  For example, if your strings are sometimes up to 4000 characters long, you don't have to post any data that's nearly that long.  You can probably show what you want with strings that are 80 characters long.
Always say which version of Oracle you're using (for example, 11.2.0.2.0).
See the forum FAQ: 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 occurrences of old_link to new_link.  It will only change the rows where old_link occurs, but, aside from that, it doesn't matter how many times old_link occurs in str:  if it appears 2 times in the same str, then both occurrences will be changed to new_link.
Watch out for the "mother is in chemotherapy" problem.  If old_link is 'bar.com', the statement above will change 'fubar.com'.  You may need REGEXP_REPLACE and/or REGEXP_LIKE if you need to consider what (if anything) comes immediately before 'bar.com' when deciding whether or not to change it.

Similar Messages

  • Looking for an App, use like a library record

    I am looking for an app, that the users that can check-in and out of the inventory.
    meanwhile, it can generate a record of the trasactions.
    thanks a lot for your help!!

    Try the App store:
    1. In search type R followed by E followed by S followed by T followed by A followed by U followed by R followed by A followed by N followed by T.
    2. Click SEARCH.
    3. Browse through results.
    4. Select the app that you want.
    5.Click download on the app you want.
    6.After that App is downloaded use the app.

  • Using !format on multiple occurrences of the same field

    I'm trying to use the @if function to apply formatting to two occurrences of a field, but am not having any luck so far.  The specific example is that I have two check boxes on the template, and would like to have only one of them checked at a time, using the same field in my data file for both check boxes.  The field that I'm using in my data file is:
    ^field ACCOUNT_TYPE
    And the only two possible values for that field are CHECKING and SAVINGS.  On the first ACCOUNT_TYPE checkbox, I have entered the following !format:
    @(If("@_$_."=="CHECKING","X"," "))
    And on the second ACCOUNT_TYPE check box it is
    @(If("@_$_."=="SAVINGS","X"," "))
    The @if statement works fine when I apply it to only one of the check boxes, but when I apply it to both, nothing populates into the field.  A simple solution would be to change the data, but doing so is not an option in this case for me.  Any help or alternate solutions is appreciated.  Thanks!

    Hi
    I treid different combination keeping the same field name for two radio buttons but it didnt work. You can work out with an alternate solution , keep different name for two radio buttons say : JF07 & JF08
    And under JF07 for !Format event : @(If("@JF03."=="SAVING","S",""))
    And under JF08 for !Format event : @(If("@JF03."=="CHECKING","C",""))
    where JF03 is the field name which may have one of two value : i.e either SAVING or CHECKING
    So your form consits of 2 radio buttons ( JF07,JF08) and one field label JF03. In your dat file you have to refer to first radio button that appears first on the form i.e left to right or top to bottom.(So whatever radio button is appearign first in the sequence on the form from left to right use that radio button in dat file.Here its JF07)
    ^symbolset 108
    ^page 1
    ^field JF03
    CHECKING
    ^field JF07
    ==========
    ^symbolset 108
    ^page 1
    ^field JF03
    SAVING
    ^field JF07
    Hope this layman's altenate solution will give you a bit of relief.
    thanks
    jaY

  • How to use sum if with 2 or more criteria in the same column?

    Column A: x, y, z values
    Column B: 2, 3, 4 values
    How to sum x and y corresonding values?
    something like:
    =sumif(columnA,"x"or"y",columnB)
    Thank you
    Marc

    Hi J,
    SUMIFS is used where more than one condition must be  met.
    Here's the syntax:
    =SUMIFS(sum-values,test-values,condition,test-values,condition...)
    Here's an example which will sum those numbers in column B for which column C contains the letter x AND column D contains the letter y:
    =SUMIFS(B,C,"x",D,"y")
    The syntax should be the same in Numbers for Mac OS X (the subject in this community) and in Numbers for iOS (discussed in the iWork For iOS community). questions regarding the iOS version will receive more expert hepl in that community. The link will take you there.
    Regards,
    Barry

  • Can I use SubPanels to display and run multiple executables from the same GUI?

    I have two Labview executables that performs some A/D I/O, each using an independent USB-6008.  I would like to run both of these executables from a single UI.  Is this possible usin SubPanels?  Or some other method?
    I found KB regarding exe's and VI Server but can't seem to get the suggested workarounds implemented.
    http://digital.ni.com/public.nsf/allkb/8545726A00272EB0862571DA005B896C?OpenDocument
    I am using Labview2009
    Thanks
    Dan
    Solved!
    Go to Solution.

    DBerry wrote:
    No, of course I am not sure yet.  I have only begun testing this method. 
    Not sharing common hardware (separate USM-6008s).
    Here is the whole picture:
    I have developed a top-level VI that performs Daqmx IO using a single USB-6008.  The top-level VI references a Project Daqmx Task that points to the desired 6008.  I would like to create a single UI that uses this top-level VI to control twoUSB-6008s simultaneously.  I thought I could build the top-level VI into 2 separate exes, where the only difference between the exes is the hardware it points to (one exe to each of the 6008s).  But I have been unsuccessful at running these two exes within a single UI.  I attempted use subpanels on a tab control to do this but I am unable to obtain a reference to the top-level vis once they have been built into an exe.  I have also tried building a dll and exporting the top-level vi from the dll build but i can't seem to get that to work either.  In both of these cases my Open VI reference function returns errors (Error 1445).  I am aware of the changes in referencing VIs from within an exe/dll since LV8.2 - http://digital.ni.com/public.nsf/allkb/8545726A00272EB0862571DA005B896C
    The link seems to suggest that I should be able to obtain a reference to the top-level vi within the dll but I can't get it to work.
    So I then moved on to the above method (making all the subvis reentrant).  I just haven't figured this all out yet.
    If you have suggestions on other problems I may run into please share.  I think I can eliminate my FGs but haven't gotten back to this yet.
    Thanks
    Dan
    When I am designing apps of the type you described I have kept the ned goal in mind from the begining since of the issue you are mentioning. I also don't want to tell you to throw it all away and start over. So with that in mind I have been looking at your posts and only offering the least destrutive ideas first. With that in mind I would like to invite yo uto look at the code i posted in this thread (reply #18 has a zip).
    That code shows how to realize un-dockable GUI regions but it passes the ref of the top level VI to a reentrant VI it instanciate for each undockable region. It may have enough hints and technique to give you some ideas that will work for you.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can I have use the same div ID multiple times on the same page?

    Okay so a problem I encounter a lot is that often times I want to use the same div ID several times on the same page. An example of this is when I'm creating table like designs.
    Let's say for instance I create a div ID called 'product-container'. I want to use 'product-container' multiple times on the same page but if I do this it is improper XHTML and will throw errors in any XHTML validator (you are only allowed to use a div ID once on any XHTML page in order for it to be standards compliant).
    Now the first option is that I could define 'product-container' in my CSS style sheet multiple times by doing something like this...
    #product-container {
         width: 300px;
    #product-container-2 {
         width: 300px;
    #product-container-3 {
         width: 300px;
    #product-container-4 {
         width: 300px;
    What you will see there however is that it seems pointless to define the same ID numerous times over (just adding a number on the end) when each ID is the exact same thing and has the exact same attributes.
    Now what I have noticed is that there are some sites out there who manage to have the same ID appear several times in the code but add a number to it just like above. The difference is that they only have one definition for 'product-cointainer' in their CSS document but in their actual XHTML code they have IDs for 'product-container' but with numbers on the end like 2,3,4,5, etc. It's almost as if JavaScript or some other code is automatically appending a number on the end of the ID so the validator won't consider the markup to be invalid, but yet it knows that it's using the same 'product-container' style that is contained in the CSS style sheet.
    I hope I explained this correctly. I'm just hoping to find a way that I can put the same div ID on a page multiple times without having to define it over and over again in my CSS.
    Any help is much appreciated!

    Because it seems like by using a class you can't make this position as 
    well as you can by using an ID. Am I wrong?
    An ID name can be used only one time per page.  A class name can be used multiple times per page.
    .product {
    width: 300px;
    text-align:left;
    color: #FF0000
    border: 2px solid #666;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Emailing photo using MS Exchange Server sends multiple copies of the same email

    Emailing 1 photo using Microsoft Outlook Exchange server sends multiple copies of the same email and photo.  50+ at last count.  Also, since I emailed the photo to myself, then deleted these multiple copies from my inbox and sent items, my work Outlook exchange server will no longer sync.  Is there a solution for this? 
    Post relates to: Pre p100eww (Sprint)

    Thanks for your reply. 
    I have restarted multiple times.  I have also removed and re-added outlook exchange email 3 times.  This only affects exchange server email.  I can send the photo from my gmail and it only receives 1 copy.  I was wondering if this was a known issue and if someone had a fix for it.  Otherwise would have to wait for the next WebOS update.

  • Label Printing Using Address Book - How can I Print multiple labels of the same name?

    Label Printing Using Address Book - How can I Print multiple labels of the same name?

    I used to be able to print multiple copies of the same picture on one page using iphoto. There was a customise button when you went through to print and it was there somewhere. I can't see it anymore - maybe since an upgrade.
    It's gone. But as a work-around, duplicate your photo (⌘D) to create as many versions as you want copies and select all at once. Then use the "Custom" print layout and set the photo size you want.
    After printing, trash the added versions.

  • Looking for System Tables / Views like in Oracle DB - user_constraints, user_tab_columns, ...

    Hello,
    I'm looking for system tables or views like in the Oracle Database.
    First I'm looking for running /active sessions - like v$sessions or in an RAC environment gv$session
    And get the corresponding SQL from v$sql
    Second I had problems to drop tables due to constraints.
    Therefore I was looking for dba_constraints, all_constraints or user_constraints
    select * from user_constraints WHERE constraint_type in ('R');
    With that information I'm able to generate a script to drop the constraints.
    Third I want quick lookup about data types used in a table to correct my settings in Oracle BI.
    For example which column in which table of my schema uses the datatype BIGINT.
    If only 3 attributes in  two tables out of 100 use the BIGINT datatype - I'm able to quickly change my settings in the OBIEE repository.
    I'm missing a table like user_tab_columns.
    How can I get the same information out of TimesTen ?
    Thanks in advance,
    Thorsten

    Hi Thorsten,
    You should be able to get some of the information that you want from the TimesTen reports that are in SQL Developer.
    e.g.
    <TimesTen Reports -> Table -> Columns -> Columns> returns a listing of all the columns and their data types. You can order by the data type column or add a filter (say ='TT_BIGINT') to restrict the result set.
    <TimesTen Reports -> Table -> Constraints -> All Constraints / FK Constraints / PK Constraints / Unique Constraints>  returns a listing of all the constraints, their name, the table that the constraints are on, and their properties.
    For all the SQL Developer reports, you will be able to see the underlying queries and the TimesTen system tables/ views that they reference.
    Simon

  • Looking for software or a service with which I can create a personalized photo calendar

    I am looking for software or a service with which I can create a personalized photo calendar. Any recommendations?
    Jerry

    Thanks for the reply.
    iPhoto, unfortunately, has some real problems in my opinion. Control over image placement and size is limited. This is compounded by the fact that Apple has not made the job any easier by refusing to publish information such as recommended aspect ratios and pixel sizes of images used to create a calendar. Obviously, these both change as the page layouts change. But, I don't think it is too much to ask that Apple supply image aspect ratios for each frame size, 2:3, 3:4, 1:1, or something else. What pixel sizes are required for each frame size/aspect? It is impossible to place 2 photos (or 1 photo and a name) on one date should 2 birthdays fall on one day.
    Further, there is no recommendation for color space to be used by the printer.
    I am tired of trying out a photo in the calendar only to find it looks bad at the pixel size and aspect I chose, then have to go back to the original, re-crop, resize, and wrestle with bringing it back to iPhoto. (I use Aperture to organize my images.)
    I must also add that I had a very bad experience with an iPhoto book earlier this year. Don't know if Apple has fixed the problems as I refuse to invest another 20 hours of time and more then $150.00 to find out.
    I am seriously looking for something to replace iPhoto (unless changes are made) to do the 10 or 15 calendars for my family again this year (and possibly redo my book).
    Jerry

  • Looking for pages designd using iWeb

    hi and greetings from germany,
    i'm looking for pages designd using iWeb to get an impression how it is working. I would like to build pages with text and i would like to know if it is possible to change or delete the placeholders for photos in the templates.
    sorry - i can only use that english i learnd at school long ago ... ;-))

    http://www.happyadam.com
    The URL above points to my iWeb - spent a couple of hours with this over the weekend. It's quite flexible - takes a little getting used to (if you've used Pages then it's similar). There's not many templates but it's a good starting point.
    The worst thing is the .Mac servers - they're very slow for hosting these iWebs as many others have found.
    12 Powerbook G4 1.33GHz   Mac OS X (10.4.4)  

  • How to look for a keyword in SAP MaxDB Library 7.6

    Hi,
    how to look for a keyword in SAP MaxDB Library 7.6 ( http://maxdb.sap.com/doc/7_6/7e/c3fb0e72fcf84580f7ee9fcec672b7/frameset.htm)
    Thank you.

    http://maxdb.sap.com/documentation/
    =>
    Section u201CDownloadu201D - HTMLHelp file < 7.8 or 7.7 version >
    HTMLHelp file
    .chm, full text search, print-optimized, 6.3 MB
    < download it or open it >
    < If downloaded, Then start on your server:
           maxdb-chmdoc-en-78_740.chm   >
    and type a keyword in field u201CType in the keyword find:u201D and search.
    Itu2019s working fine.
    Regards, Natalia Khlopina

  • Looking for sample code using "first_tab" and "next_tab"

    Looking for sample code using "first_tab" and "next_tab". How is it used with ItemID within a dialog box? I've read the reference books - don't understand it.

    Hi Ray,
    There are several ways to do this, and in the example I created, I actually did not end up using shift registers. I've attached some example code that basically multiplies the period by the duty cycle percentage to achieve the number of milliseconds to be high and low.
    You would just need to insert your DIO code in each frame of the sequence structure.
    Hope that helps. Kind regards,
    -Sam F, DAQ Marketing Manager
    Learn about measuring temperature
    Learn how to take voltage measurements
    Learn how to measure current
    Attachments:
    70_PWM_Example.vi ‏23 KB

  • Looking for a cheap used Mac

    Greetings,
    I'm looking for a cheap, used Mac to play around with iPhone app developement. How far back can I go hardware wise and still be able to install
    Snow Leopard?
    Thanks,
    Patrick

    You can install Snow Leopard on any Intel model as long as it has at least 1 GB of installed RAM.
    Snow Leopard General requirements
    Mac computer with an Intel processor
    1GB of memory
    5GB of available disk space
    DVD drive for installation
    Some features require a compatible Internet service provider; fees may apply.
    Some features require Apple’s MobileMe service; fees and terms apply.

  • Looking for ringtone that sounds like a landline p...

    Hi,
    I'm looking for ringtone that sounds like a landline phone, in other words no music, movie sounds, etc., just a good quality tone that sounds like a conventional (old fashioned even) telephone ring. Any ideas what site I can get one from?
    Many thanks, etc.
    PS. Handset is a Nokia 6300.

    Have a look at the ones I posted here they are a more traditional kind of ring rather than old fashioned ones though.
    http://www.fonefunshop.co.uk/forum/showthread.php?p=178318#post178318
    HTH.

Maybe you are looking for

  • Automating the process of equipment creation

    Hi, I am Pretty new to this domain. i want to know some basic functionality on CS processing. As i know we are make use of equipment master for the warranty related information and against this we are creating notification. My question is can we take

  • How to convert encoding from bean

    Hello I havae a String in java bean and I need it as UTF-8 to see it on browser I'm calling method from jsp

  • Crystal 8.5! Set table locations at run time to queries

    Hopefully some people still remember version 8.5... I have a number of reports which all work from a single database, this can be either Access or SQL Server, I'm currently testing on Access. I would like to use the same reports but print them for mu

  • Repeated message on A 1 table

    I have started getting the message"the process android.process.acore has stopped unexpectedly.  Please try again:  Force Close. " When I click on the force close, the only option, the message goes away and then comes back within 5 to ten seconds.  An

  • Google Maps in Lightroom too slow

    Hello, I have the problem that the display velocity of the maps in Lightroom is very slow. When i am downloading the same map with a browser it is fast, so it couldn't be a question of the dan width of my internet provider. Has anyone the same proble