Bulk Find and Bulk replace in a table ..is it possible?

Hi
My table contains say some 10 columns, and in that i need to search a single column for a set of values (each value has got its own replacement value) and replace it with new value.
to make it clear am giving the sample example:
one of the column has got values :
44391
44391
44391
44391
44391
44392
44392
44392
44351
44352
44353
44361
44361
i need find these values in that column
44351
44352
44353
44361
44362
if its available then replace it with
56651
56652
56653
56661
56662
in that table column
can it be achieved?
Aemunathan

SQL> create table t (value)
  2  as
  3  select 44391 from dual union all
  4  select 44391 from dual union all
  5  select 44391 from dual union all
  6  select 44391 from dual union all
  7  select 44391 from dual union all
  8  select 44392 from dual union all
  9  select 44392 from dual union all
10  select 44392 from dual union all
11  select 44351 from dual union all
12  select 44352 from dual union all
13  select 44353 from dual union all
14  select 44361 from dual union all
15  select 44361 from dual
16  /
Tabel is aangemaakt.
SQL> update t
  2     set value
  3         = case value
  4           when 44351 then 56651
  5           when 44352 then 56652
  6           when 44353 then 56653
  7           when 44361 then 56661
  8           when 44362 then 56662
  9           end
10   where value in (44351,44352,44353,44361,44362)
11  /
5 rijen zijn bijgewerkt.
SQL> select * from t
  2  /
                                 VALUE
                                 44391
                                 44391
                                 44391
                                 44391
                                 44391
                                 44392
                                 44392
                                 44392
                                 56651
                                 56652
                                 56653
                                 56661
                                 56661
13 rijen zijn geselecteerd.Regards,
Rob.

Similar Messages

  • Select in both upper and lower case on text tables- Is it possible

    Hi all,
    I have below data in my data base.
    SULPH1
    SULPH2
    Sulph3
    I am querying the descritpion table with like operatior. if I query with SUL, I am getting 2 records, If I query with Sul I am getting only one record. it is possible to get all the 3 reocrds in one search like SUL or Sul?
    Thanks in Advacne.
    Vr reddi.

    Hi  vrreddi,
    independent of the lower case indicator programs are still able to store lower case data-
    In this case, use
    SELECT <whatever or *>
      INTO <target structure>
      FROM <DD TABLE NAME>
      WHERE ...
    CONVERT  <target structure-your field> TO UPPERCASE.
    CHECK <target structure-your field> IN S_SELECT.
    APPEND <target structure> to <internal table>.
    ENDSELECT.
    Regards,
    Clemens

  • How to find last inserted record in the table.

    Version: Oracle 10g
    I have a table called "Manufacture" and 3 columns as mfno,itemname,quantity.
    How to find last inserted record in the table "Manufacture".
    As i come to know that Rowid is not result perfect results. Please provide your inputs.

    user13416294 wrote:
    Version: Oracle 10gThat is not a version. That is a product name. A version is 10.1.0.2 or 10.2.0.4, etc.
    I have a table called "Manufacture" and 3 columns as mfno,itemname,quantity.
    How to find last inserted record in the table "Manufacture".Not possible as your data model does not cater for it. That simple.
    If there is a need to determine some order or associate some time to an entity, then that should be part of the data model - and a relationship, or one or more attributes are needed to represent that information. Thus your data model in this case is unable to meet your requirements.
    If the requirements are valid, fix the data model. In other words - your question has nothing to do with Oracle and nothing to do with rowid, rowscn or other pseudo columns in Oracle. It is a pure data modeling issue. Nothing more.

  • Find and replace a table style

    I have about 10  table styles in a document and I want to replace all of them with the #1 table style. Can this be done with Find and Replace?

    You'll need to do this for each of the Table formats that need to be replaced.
    Let's assume the desired format is "Format A" (a default FM style), and one of the formats to be changed is "Specs 2".
    Click in any instance of a Specs 2 table.
    In the Table Tag field, pull down and click on [Format A].
    Click Commands > Global Update Options:
    (*) All Properties
    (*) All Tagged [Specs 2]
    [Update]
    If it works properly, you'll get a dialog:
    OK to change all Format B tags to Format A?
    [OK]
    Additional global updates may be required to clean up any overrides.
    Trying this on FM7 at home, it didn't always work. I don't know if newer versions are more stable. Personally, I never do it this way (probably because of prior experience), and I usually just hack the MIF.

  • Using applescript for Find and Replace All in Pages 2.0

    i saw that Pages 2.0 is scriptable
    i try to create a script for merge use to find and replace all occurence of a certain string using a script but Pages doesn't seems to respond to "Find" even using "System Events"
    how can i do to use this function with a script
    Thanx for any help
    S.B.
    ibook G3   Mac OS X (10.4.6)  

    OK, here's another example. This one gets the text as a string and uses the offset property to find "[", presuming it to be a merge delimiter. (Pages' text doesn't support "offset of").
    One failing of this scheme is that the offsets are incorrect if you have inline objects (pictures, shapes, tables, etc.). While it is probably possible to compensate for them, that's a trickier proposition.
    <PRE>-- Example merge replacements:
    property mergeText : {"[name]", "John Smith", "[address]", "1234 Anystreet"}
    on lookup(mergeWord)
    set theCount to count of mergeText
    repeat with x from 1 to theCount by 2
    if item x of mergeText = mergeWord then
    return item (x + 1) of mergeText
    end if
    end repeat
    -- If merge field is not found, delete it (replace it with the empty string)
    return ""
    end lookup
    tell application "Pages"
    repeat
    tell body text of document 1
    -- Get text as a string so that "offset of" can be used.
    set allText to it as string
    set startOffset to offset of "[" in allText
    if (startOffset = 0) then
    exit repeat
    end if
    set endOffset to offset of "]" in allText
    select (text from character startOffset to character endOffset)
    end tell
    set mergeWord to contents of selection
    tell me to lookup(mergeWord)
    set replacement to result
    set selection to replacement
    if (replacement is "") then
    -- Get rid of extra whitespace (space or return)
    -- Do it in a "try" block to handle edge cases at start or end of text.
    try
    set theSel to (get selection)
    set ch1 to character before theSel
    set ch2 to character after theSel
    if ((ch1 is " " or ch1 is return) and (ch2 is " " or ch2 is return)) then
    select character after theSel
    delete selection
    end if
    end try
    end if
    end repeat
    end tell</PRE>
    Titanium PowerBook   Mac OS X (10.4.6)  

  • Is there is a way to change the "Find and Replace" feature in Numbers 3.2 back to the way it used to be on Numbers '09 version 2.3?

    In order to view my documents on my newly purchased Macbook Air I recently had to upgrade my 27" iMac to Numbers 3.2.  The new version does fine for what I use it for except the new "find and replace" feature...It is TERRIBLE! It is so much slower than the older version.  Plus I loved how the older version showed a table of all the matching word or items you're searching for and you could easily scroll through them to find the one that you were searching for.
    My question is: Can you change the Find and Replace feature back to the way it used to be in version 2.3 or Number '09?  If so, please show me how.  I would really appreciate it.
    The image below shows the new version on the left and the old version on the right just in case you don't know what I'm talking about...
    Thank you.

    Hi The.Gav,
    Sad to say, but that feature has gone in Numbers 3.2
    This discussion may help (or not)
    Numbers - How use Find like the previous version?
    Regards,
    Ian.

  • Is there a way to find and replace prices in an Indesign document from a CSV file?

    Is there a way to find and replace prices in an Indesign document from a CSV file. Currenty I have a catalog with codes and prices in tables. I need to find a way to look up the code (and new price) in the CSV file and overwrite the price in the current table with the new price. Does anyone know of a script to run this quickly?

    Hi,
    Try this
    1) with all the images showing, got to Find -> By caption or Note
    2) enter the caption you are looking for Image Description and click on OK
    It should display all the ones with that caption
    3) select a few images as a test
    4) go to Edit -> Add caption to selected items
    5) if you want to blank out the captions just check the box to replace the caption and click on ok
    6) You will need to confirm the blank captions
    You could use a similar procedure to change the caption to something else.
    Good luck
    Brian

  • Question about Find and Replace PL/SQL option in Forms Builder

    Dear All
    I have a small question .
    I am using Find and Replace PLSQ/SQL in forms Builder ( Edit - Find and Replace PLSQL) to search any code in a form.
    Let say I am searching for EMP .
    Then all the places is coming where EMP is used as well as EMPloyee , EMPloyee_Desc tables also coming .
    So is there any way to serach only the EMP part .

    If you look closely to the right of the "Find What" field, you should see a button - "Expression". This allows you to add some logic to your search. Alternatively, depending on how you code, you could just look for spaces. For example, if you are looking for EMP and not EMPLOYEE, search for EMP with a blank space before and after it (assuming you code this way) or use something like this \bEMP\b This would work for me because I code the same way I write sentences - each work is separated by spaces.
    <blockquote> EMPLOYEE := EMP || ' - ID';</blockquote>
    In this example, seaching for EMP with a blank space after would find what I wanted. However, if you only search for a trailing blank, you may end up also finding words like tEMP. This is where have a blank space before each word is helpful.
    Other, more valuable expressions could be written to accomplish your task. Refer to the Forms Builder Online help for more information about using Expressions in the Find and Replace search window.

  • Bulk insert for two tables

    Hi All,
    I have a cursor in PL/SQL block and it selects the data for about 100 columns, my requirement is to insert the data of about 60 columns into one table and rest of the columns into another. Please let me know how do I implement the same by using BULK INSERT.
    Thanks for your help in advance.

    Why not dispense with the CURSOR and instead use a multi-table INSERT...SELECT?
    INSERT ALL
      INTO table1 (col1, col2, ..., col60)
      VALUES (col1, col2, ..., col60)
      INTO table2 (col61,...col100)
      VALUES (col61,...col100)
    SELECT col1,..., col100
      FROM etc.where the SELECT is doing the same query as the CURSOR.
    Edited by: user142857 on Nov 12, 2009 10:06 AM

  • In the new Numbers, can I find and replace within formulas like I used to in Numbers'09?

    I use Numbers with quite long formulas with reference to other tables. With Numbers'09, it was extremely useful to copy formulas and then use "find and replace" to change the terms within.
    Did they remove this option? I don't seem to be able to do that with the new Version.
    If it's still there, where do I find it?
    If it's not there.... why would they remove it.
    Thanks

    Basically, I use it for payroll, taxes, and so on... I have one sheet per employee (which compiles their weekly payroll). I have then different sheets which makes the quarterly taxes calculation (state and federal taxes - 941, 940, W2, disability,  UI, paystubs, tracks payments and deadlines, etc... ). It took me awhile to write all of the formulas, but now it does everything for me.
    When I add an employee. I have to add a sheet, but also add a line in the calculation sheets. Because all the employee sheets are the same format, all I need to do (or used to now) was to copy the line above, and just change the reference name of the employee sheet  within the formula (because there are several terms that are looked up, the reference name comes several time in the formula)... changing it manually is really annoying. What was taking me a minute or so, before, now takes me about 20 minutes. (between the different sheets, there are about between 75 to 100 changes in formulas per new employee - so the "find and replace" in formula only, was extremely useful).

  • Find and replace using wildcard

    I've inserted table content using Insert/Table Objects/Insert Tabular Data in DWCS3 and want to remove unwanted code from the table insert.
    Example:
    <td width=156 valign=top style='width:117.0pt;border-top:none;border-left:
      none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
      mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
      mso-border-alt:solid windowtext .5pt;background:#FF8A50;padding:0cm 5.4pt 0cm 5.4pt'><p class=MsoNormal><span style='mso-bookmark:CurrentPosition'><span
      style='font-size:10.0pt;font-family:Arial'>
    The text between "width" and "Arial'" varies but these two start and end words are the same in each instance to be replaced - how can I find and replace using a regular expression wildcard?  Have researched on web but not come across answer yet.  I thought it might be simple and hopefully it is and I'm just having a shocker. Is it something like Find:  "<td [^"]*> and Replace with: "<td>"?  Am I close?
    I'd appreciate anyone's help and thankyou in advance for your time.

    You might be able to sort this out with Commands > Clean Up Word HTML.
    However, the following regular expression should also do what you're looking for (make a backup first). Put this in the Find field:
    (<td)[\w\W]+?Arial\'(>)
    Put this in the Replace field:
    $1$2
    Select "Use regular expression".

  • Is design view missing from RoboHelp's new Find and Replace editor?

    I just started using RoboHelp 10 and was excited about the new Find and Replace feature. However, it seems to force the user to edit in the HTML editor (which is very difficult when the topic has tables). Am I missing some preference setting?
    The only workaround seems to be to to find a topic and then track it down in the Project Manager list and open it in the normal fashion.
    Thanks.
    Carol

    Find and Replace in Files (as opposed to a single topic) has always been at HTML level.
    If you do use this updated feature, do not use the Contains field unless you want to kiss your project goodbye. See Using Rh10 on my site.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Find and replace an item in one column only

    I have tried and tried and I cannot work out how to find and replace an item in one column only.
    For example one column has a letter followed by a number which varies in length.
    I want to find and repace the letters with nothing leaving the numbers only.
    But when I try to do this all the letters in the spreadheet are replaced, not just in the column I have selected.
    Help please....

    Hi 8'
    Use a formula.
    Insert a (temporary) auxiliary column to the right of the one for which you want to male the changes.
    Assuming you description is accurate—every entry in the column consists of a letter followed immediately by a number of one or more digits—the problen could also be stated as  "How do I strip the first character from a string?"
    Here's a sample. Letter followed by number in column B; number part without leading letter i column C:
    Formula:
    C2, and filled down to end of column: =RIGHT(B,LEN(B)-1)
    When the formula has done its work:
    Select all of column C (except the ehader row cell), and Copy.
    Select cell B2, and go Edit > Paste Values.
    Select column C again and go Table (menu) > Delete column.
    Regards,
    Barry

  • Can't find and replace on one column only

    in Excel I could find and replace something that where on one column.
    In Numbers I can find and replace on all the document, active sheet or formula, but not on the selected column i.e.
    Does anyone know any trick for that?
    Cheers
    Olivke

    Hi Olivke,
    Welcome to Apple Discussions and the Numbers '09 forum.
    Of the three choices, the one that seems most immediately useful in "on the active sheet."
    To use that, you'll have to isolate the column (or it's contents) on a separate sheet, and make that the 'active sheet.'
    I would recommend making duplicates of your file to use when trying each of these methods.
    Start by inserting a new sheet. Then go back to the 'current sheet', select the column, and Copy.
    Click on the new sheet to bring it to the front, click on the top body cell (B2) of the empty table that came with that sheet and Paste.
    Do Find/Replace, restricting the action to the Current Sheet.
    Select the column, Copy, return to the original, Select the column, Paste.
    Second method...
    Starts the same way, but this time select and delete the table that comes with the New Sheet.
    On the original table, click on any cell to make the table active and show the column and row reference tabs.
    Use the mouse to grab the reference tab of the column you want to search, and drag it upward until you see it separate from the rest of the table. Continue to drag it until it is completely separated from the table, then drop it on the sheet. In the sidebar, you'll see a new table icon for this one column table. Drag the icon down to a position below the icon for the new sheet you created above.
    When you drop the icon, the new sheet will be come the current sheet, and will come to the front with the one column table selected.
    Do Find/Replace, restricting the action to the current sheet.
    When finished, drag the one column table back to its original sheet, using the icon in the sidebar.
    On the original sheet, click on a cell to make the one column table active. Grab the column reference tab and drag the column back to its original position in the original table.
    Done.
    Regards,
    Barry

  • Find and Replace from a list?

    I have a 400 page indesign brochure. It contains 3000 codes. I want to change those 3000 codes to links (existing code the word to click on - not the view of full url). I have a csv file with all codes (col 1) and full http link (col 2). Anyone help me with a find and replace? I have CS5.5 (very poor see) - my knowledge is pretty poor as I have not used the program for a few years. I would appreciate any help.

    Take a look here Re: FindChangebyList with strings of text? I think #12 is what you want.
    You might need to sort the order of the excel list according to the length of the word from longest to shortest.
    To do that in cell C1 type =LEN(A1)
    Copy that to the whole column apply the sort to the table from largest to smallest and then erase the whole column C save the file and it's ready for the script.
    I would have written the script differently now as my skills have improved significantly, adding a sort function in the script would be very easy but I'm very busy now.
    Trevor

Maybe you are looking for

  • Updating a pdf form

    Hi unfortunately due to the requirement to save the form i had to use the pdf form instea dof the web version. the problem i have i s the form is live and working ok, but i neeed to make some adjustments to the form, whats the best way to do this? ca

  • Displaying a local HTML File

    I wish to include a help file in my Java application. The easiest format for me to use is a local HTML page, resident in the same directory as my installed application - but I am having trouble displaying it using the jEditorPane. I realise this may

  • T2 messages not found with apexlib

    Hello , I almost successfully installed apexlib. But if an error occurs now I get a windows popup errorwindow stating that t2messages can not be found and after that the error message. Like was said in the how to integrate I changed t7 to t2 with is

  • How to stop the spiral?

    How do I stop the swirling spiral on Macbook air with new OS?

  • Loading external swf and object error

    Hello Forum, I have two swf files, Flash CS3, action script 3. One file can be considered to be the parent container, it does have some objects on its stage. The other file is a file that I would like to load into the master file using the Loader obj