replace the functionality

Real power - PONDS12 PONDS123YARDLEY2 YARDLEY23CUTICURA CUTICURA3ITM12 GOKULSANDAL

Expected results CUTICURA GOKULSANDAL - IE replacement must only for itm12 and itm123 and not for itm, itm1. I just gave the itm, itm data. This table can contain data such as location, location11, location123. therefore only to be replaced for the actual string does not part of it.

CREATE TABLE attributes (c_attr VARCHAR2 (20), C_VALUE VARCHAR2 (20));

INSERT INTO VALUES attributes ('ITM', 'PONDS');

INSERT INTO attribute VALUES ('ITM1', 'YO');

INSERT INTO attribute VALUES ('ITM12', 'CUTICURA');

INSERT INTO attribute VALUES ('ITM123', 'GOKULSANDAL');

commit;

DECLARE

m_out_value VARCHAR2 (100);

m_out_string VARCHAR2 (100);

BEGIN

FOR I IN (SELECT C_ATTR, C_VALUE FROM THE ATTRIBUTES) LOOP

SELECT REPLACE('ITM12 ITM123',i.c_attr,I.C_VALUE)

IN THE DOUBLE M_OUT_VALUE;

m_out_string: = m_out_string | m_out_value;

END LOOP;

Dbms_Output.put_line (m_out_string);

END;

/

Vinodh

with

attributes such as

(select "ITM" c_attr, c_value "PONDS" of all the double union)

Select "ITM1", "YO" from dual union all

Select 'ITM12', 'CUTICURA"dual union all

Select 'ITM123', 'GOKULSANDAL' from dual

)

Select: input_string input_string, listagg (c_value,' ') within the Group output (control rownum)

attributes

where instr ("' ' |: input_string |" ") ',' '|| c_attr | » ') > 0


INPUT_STRING OUTPUT
ITM ITM12 ITM123 CUTICURA GOKULSANDAL PONDS

Concerning

Etbin

Tags: Database

Similar Questions

  • How to replace the functionality of the Standard provided by QueryRN OK button

    Hello

    How to replace the functionality of the Standard provided by QueryRN OK button

    Kind regards
    MILIN

    Hello

    Please visit http://www.oraclearea51.com/oracle-technical-articles/oa-framework/oa-framework-beginners-guide/279-customizing-query-bean-to-extendoverride-the-functionality-of-go-button.html.

    Good day.

    Kind regards
    Out Sharma

  • replace the function in ASP.

    Hello
    I have a text box that records in a database. When I call the text in the database is displayed without showing none of the transport returns. I know that I need to use the function replace, but I sure know where? Is this before any record in the database? because I don't see any characters indicating a return in the text stored in the database of truck? so I don't know what to replace?

    OR should I replace before the save?

    I'm sure only that a simple one-liner, but can't find it.

    All snippet code or advice appreciated.

    DOH, found my own answer.

    < dutexte="" %="jeu" d’enregistrements.="" fields.item("databasefield").="" valeur="">< br="" >="" response.write="" (replace="" (dutexte,="" +="" "\n",="">
    "))< br="" >="" %="">

  • replace the function

    Hi all, sry for post sql problens in the forum of the APEX, but I really need help with this...

    I m trying to replace: car, then do a select where in (with more) one value... but replace it works it is not working with more value then 1...
    Like this
    select name from vw_requerente where id_cliente in REPLACE(:P5000_CLIENTE,':',',')
    in this point has this value: 71:72:73, but all I get is an ORA: NUMBER not VALID, how do I replace a function to work with this?

    tnks a lot and sry my English.

    Thanks for the insight, Tony.

    select name from vw_requerente
    where instr( ':' || :P5000_CLIENTE || ':' , ':' ||id_cliente||':' ) > 0
    

    should work with the assumption that 'customer_id' and the ':' separated in P5000_CLIENTE values are numeric values.

    CITY

  • I accidentally lost some jpeg files using movement and replace the function when transffering in a new folder. Where will the replaced files?

    I moved some images in a folder, some of the images already in the folder had the same name as the new scanned images IE 1 Scan, Scan 2 etc. I used the move and replace the folder without thinking that I was in a hurry. I still need replaced images but now I can not find them I thought that they would have ended up in the trash, but they aren't there?

    You can download some like this free data recovery software to recover deleted files.

    1 panda Recovery http://www.pandorarecovery.com

    2 recuva http://www.snapfiles.com/get/recuva.html

    3. undelete more http://undelete-plus.com/

    How does it work?

    When you delete a file on the FAT32 or NTFS file system, its content is not erased the disc, but only the reference to the data file in the file Table of Allocation or the master file Table is marked as deleted. This means that you might be able to recover files deleted, or to be visible through the file system again.

  • How can I change the registry values with a common search for the string and replace the function where I don't do all manually?

    Due to problems of space with my installation of XP Pro, (operating system has been installed on a 4 GB partition and I did have a copy of the OS to do a new installation) I am trying to move a number of files on a mounted drive.

    It is a way to search an entire record of [SPECIFY FOLDER] "C:\Program Files\" instances and replace each with "C:\Program Files\Overflow\ [SPECIFY FOLDER]" as a common discovery replace function?

    Also, I'll have to move several "Common Files" files in the mounted folder 'Overflow '. The method to make learning one should help me to do both. Manually, it will take most of thousand years that all the files in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components
    the files seem to have a key value have changed.

    I have already uninstalled and reinstalled some programs at the desired location, but many still use the "Common files" folder despite my having already changed the default installation directory path in the registry. Any help would be appreciated.

    Thank you

    NORTH CAROLINA

    One way:

    1. Start Regedit (start-> Run-> 'Regedit')
    2. Select the branch of the registry, or you are interested in changing.
    3. The export of this branch of the registry (file-> export) in a ".reg" file
    4. Use a programming editor (for example, the freeware Notepad ++) and use the "Find and replace" function to make the changes you want.  Save the modified file.
    5. After making the changes, double-click the .reg file to fold changes in your registry.

    As always, keep a backup of your original registry in case things get really bad and know how to do to restore this backup your machine should not be able to start.

    Notepad ++: <> http://notepad-plus-plus.org/ >

    HTH,
    JW

  • replace the function in sql

    Hi gurus,
    Select Replace ("," hel, lo1 "," ",", ',' :') double)

    "It has been replaced:" hel: lo1 ":

    "but I want to get replaced as:" hel, lo1 ":

    Could someone suggest me a solution for this problem...


    Thanks in advance
    Robert L

    This?

    select replace(',"hel,lo1","' , ',"' , ':"') from dual;
    
    REPLACE(',"H
    ------------
    :"hel,lo1":"
    
    1 row selected.
    
    Elapsed: 00:00:00.01
    {code}
    
    Regards,
    Prazy                                                                                                                                                                                                                                                                                                                                                                                    
    
  • change the functions or procedures under sqlplus

    I have a problem to connect to the database of PL/SQL Developer, but I can connect to sqlplus to UNIX machine. How can I change a function of sqlplus?
    Thank you.

    Hello

    It's a little easier to connect to SQL * as owner and request rather than all_source user_source fucntion.

    To generate the file:

    SET  PAGESIZE  0
    SET  TRIMSPOOL ON
    
    SPOOL  c:\some_path\func_x.sql
    
    SELECT    text
    FROM      user_source
    WHERE     name = 'FUNC_X'     -- or whatever, case-sensitive
    AND       type = 'FUNCTION'   -- or 'PROCEDURE', or 'PACKAGE', or 'PACKAGE BODY', or ...
    ORDER BY  line;
    
    SPOOL  OFF
    

    Use any text editor to edit the file you created.

    The first line of a function begins with "FUNCTION". This must change to say "CREATE or REPLACE the FUNCTION".
    At the end, add these two lines:

    /
    SHOW ERRORS
    

    When you have made any changes, save the file and return in SQL * Plus, say:

    @c:\some_path\func_x.sql
    

    In other words, after the sign @, and put the path of the file with the modified code.

  • How to replace a bad IDE disk with a USB Flash drive system - and have all the functionality of XP Pro SP3

    How to replace a bad IDE disk with a USB Flash drive system - and have all the functionality of XP Pro SP3
    Given a PC without hard disk...
    How can you use a flash drive instead?
    So, indeed, the USB key works as an SSD...
    I saw online options that gives partial functionality of the system... and an option that is more than $100 (more than the system's worth)...
    None of these options are acceptable in the circumstances.
    It is an effort to create a machine for a particular use, built from a recycled pc for which hard drive was removed and destroyed by the original owner...
    The criterion is that it must work just like it was a mechanical drive running xp pro sp3 with all updates, etc...
    Thanks for any help.

    You can not install XP on a Flash as his unsupported drive. Your only two options are a traditional hard drive or Solid State Drive (SSD).

    J W Stuart: http://www.pagestart.com

  • Chr (44) to replace the commas separating the arguments of a function?

    In Oracle SQL, it is possible to replace the commas between the arguments of the function with chr (44)?  A simple example with substr():

    substr ("yyyy", 1, 1) - the result is 'a '.

    vs

    substr ("aaaa" chr (44) 1 chr (44) 1)-this should also return 'a '.

    Is there a way to make the second example works the same way as the first?  I tried different techniques escaping, string concat, etc., and I failed.  Is there a method to replace the comma (",") the character of the way I'm looking for or is this impossible?

    Thank you

    N °

    The Analyzer seeks commas, not for other things you as a human being assimilated by a comma.

  • DRM function to replace the comma in a string

    Hello

    I'm new to the DRM. I have a requirement to replace insérent in a string with the semicolon (-). Is it all built in function to achieve.

    For example -.

    input string is s1, s2, s3

    Output string should be s1, s2, s3.

    I tried to use the ReplaceStr function. This works well for replacing any other, but for the comma, it does not work.

    Appreciate your help.

    It works for me with the formula below to do a global search of replacement that uses properties to store the string the comma (s) must withdraw and a global property to contain the decimal point itself:

    ReplaceStr (PropValue (Custom.String), (Custom.Comma) PropValue,, T)

    You've been do not add commas directly in the formula contained in the definition of the property you have? That would by way too many parameters in the function when the formula is analyzed for you would end up with something like ' DRM-25620: number of parameters for the function "ReplaceStr" invalid. " 4 expected, found 5. »

    Concerning

    Craig

  • Gah! Web site has the function which replaces Chr (10) with spaces

    Hello, everyone.

    I'm working on a site that has a function that will automatically replace all Chr (10) with spaces when a form is present. I can't prevent this being used.

    When a form with a textarea component is present, line all the jumps are replaced by spaces, destroying the formatting of what was originally submitted.

    When you pull of the text from a database, how are we going to rebuild line breaks and the restoration of the formatting?

    Thank you

    ^_^

    Optionally, use javascript to replace the lf characters before the form is submitted.  Replace all the lf characters with some other characters that you can later (on the side Server) replace in any character you want.

    I really don't like this solution, but it could work.  It feels good for me because it's just a hack to work around the problem.  I agree with Adam because I would try to remove the offending first software.  Or at least to stop depriving the lf characters.  Is - configurable as to what replaces it?

  • Find and replace the string function replaces line breaks when I only replaced spaces?

    I need to replace all instances of a space or a series of spaces to a line with commas (or tabs) multi string so I can throw in a worksheet.

    I use the regular expression [\s]+ and it works, but it is also to replace the end of lines (\r\n) too.

    How can I replace the spaces but leave the end of the lines intact?

    Right-click on the search string and to take '-' code display. Enter the space character (\s) correctly - you \\s right now.

  • Way to replace the trig function ASIN

    Hello guys '

    I have a big problem. It's my app uses the Math.asin () function. But BB did not

    named asin(), acon(), atan() functions. I found the function that calculate asin() about:

    {} public double arcSine(double a)
           
    Double x;
    double Epsilon = 1.0E - 7;
           
    x = a;
    {}
    x = x - (Math.sin(x)-a)/Math.cos(x);
    } while (Math.abs (Math.sin (x)-a)<=>
    Return x;
    }

    But the difference is too good. For example, 0.02693011603811.

    I need at least of difference: 0.000000001

    Have u a better solution?

    Please help me guys.

    TNX again.

    Yeap' I saw this thread. I found a new function. His difference: 0.000001

    Just calculate.

  • First CC2015 - why the functionality Alt + Shft has changed when you try to replace a sequence on the chronology of the tray?

    I frequently and drag a sequence from the tray to replace an earlier version of it on the timeline. I use Alt-shift to keep that all mount points. This feature has changed. It replaces the old sequence with the first clip from inside the new nested sequence. Is this a bug? Is there a way to get around this?

    On an iMac, retina 5K, Yosemite, all software up to date.

    Hi Ted,

    ALT + SHIFT + do drag works very well in 2015 with clips - just re-tested. I'll try also with nested sequences, but if the problem is with nested seq, consult your option "insert and replace sequences as nests or individual sequences' on top left of your sequence died.

Maybe you are looking for

  • Mirror of the original disc of Windows 8 pre - install

    We use ghost solution suite ghostcast version 2.5.so, we can always recover the laptop for a client in the case of a damaged hard drive.When we achieve this we only need 1 image and have all languages. When we do a picture, it seems to work, but when

  • Toshiba Places icon blinks one!.

    Hello I'm trying to find out why the 'Toshiba Places' icon in the task bar keeps flashing a "!" warning with no corresponding message icon, it is quite annoying but rather than just turning it off I want to fix. Please can someone point me to the reg

  • y at - it truly free streaming movie sites (or they are all scams)

    My question is this - I would like to find a site where I can stream movies that are truly free.  I mean there no registration, registration, or credit card information.  I just want to go to a Web site data feeds (or download) the movie and watch it

  • How to create the hard disk volume/partition in windows 8?

    I bought a new Sony Vaio with windows 8 OS. I need to create a new partition/hard disk volume. How to create the hard disk volume/partition in windows 8?

  • migration of VM to ESX 2.5.1 to ESX 4.1

    We have a few virtual machines in an ESX 2.5.1 13057 box with local storage. It is managed using VC 2.5Now, we have installed a new server ESX 4.1 with local storage and it is managed using VC 4.1We want to migrate virtual machines on ESX 2.5.1 to ES