How can i update all column of table without know it's structure

hi to all
i want to make update to all columns of table with record type of this table
ex- consider the emp table and contain any number of columns
and you make record is row type of this table (emp) as emp_rec
and fech in it any record by select * from emp
and i want to update another record this the return record from data base as
update emp by using the emp_rec
i want to know how this will be acheive

It is all written in the docs:
http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14261/collections.htm#i20479
Although updating all columns for a table is VERY, VERY BAD practice.
Gints Plivna
http://www.gplivna.eu

Similar Messages

  • How can i update rows  in a table based on a match from a select query

    Hello
    How can i update rows in a table based on a match from a select query fron two other tables with a update using sqlplus ?
    Thanks Glenn
    table1
    attribute1 varchar2 (10)
    attribute2 varchar2 (10)
    processed varchar2 (10)
    table2
    attribute1 varchar2 (10)
    table3
    attribute2 varchar2 (10)
    An example:
    set table1.processed = "Y"
    where (table1.attribute1 = table2.attribute1)
    and (table1.attribute2 = table3.attribute2)

    Hi,
    Etbin wrote:
    Hi, Frank
    taking nulls into account, what if some attributes are null ;) then the query should look like
    NOT TESTED !
    update table1 t1
    set processed = 'Y'
    where exists(select null
    from table2
    where lnnvl(attribute1 != t1.attribute1)
    and exists(select null
    from table3
    where lnnvl(attribute2 != t1.attribute2)
    and processed != 'Y'Regards
    EtbinYes, you could do that. OP specifically requested something else:
    wgdoig wrote:
    set table1.processed = "Y"
    where (table1.attribute1 = table2.attribute1)
    and (table1.attribute2 = table3.attribute2)This WHERE clause won't be TRUE if any of the 4 attribute columns are NULL. It's debatable about what should be done when those columns are NULL.
    But there is no argument about what needs to be done when processed is NULL.
    OP didn't specifically say that the UPDATEshould or shouldn't be done on rows where processed was already 'Y'. You (quite rightly) introduced a condition that would prevent redo from being generated and triggers from firing unnecessarily; I'm just saying that we have to be careful that the same condition doesn't keep the row from being UPDATEd when it is necessary.

  • How can I update all my music from my itunes library to my ipod touch ?

    How can i update all my music from my itunes library to my ipod touch ?

    Sync them
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad

  • How can I update all photos to LR5. Last update from LR4.5 did not upgrade the files in LR4.5 folder

    How can I update ALL photos to LR5. form LR4.5.I have reinstalled LR5 to to trigger the up date to no avail.

    In the Lightroom menu, go to file/open catalog.  Locate your Lightroom 4 catalog and choose it.  Lightroom will create a new copy of that catalog in the format for Lightroom 5.

  • Have 3 Ipads how can I update all without download each time

    I have 3 IPads one one computer how can I update all without downloading for each one ?

    If they are the same model (iPad 1, iPad 2 wifi, iPad 2 CDMA, or ipad 2 GSM/sim) then for the second and third devices just press hold the shift key on windows, or the command key on a Mac, when clicking on the Check For Updates button in iTunes, and then navigate to the IPSW file - if they are different models then I believe that each model has a different update file.

  • Im using os x 10.5.8 so I dont have the app store on my mac, how can I update my os x software without the app store?

    Im using os x 10.5.8 so I dont have the app store on my mac, how can I update my os x software without the app store?
    Can I download it online?

    Nope.
    https://discussions.apple.com/docs/DOC-2455 explains how to get 10.6.6 to get the App Store.
    Only upgrade to 10.7 or later if you are prepared:
    https://discussions.apple.com/docs/DOC-6271

  • How can i update more than one table at a time?

    i would like to update more than one table at a time. In Java Studio creator2 how can i do table updation?

    Hi,
    Please go through the below thread might be of help to you.
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=51839
    RK

  • How can I update all user profile entries at once?

    I test web applications with Firefox and use the -P (user) -no-remote options on the command line to keep the sessions independent. In other words, I have created many dozens of desktop shortcuts with specific users and within each instance of Firefox for each user, the default home page is set. This all works fine...I click on as many shortcuts as I want, they all open up different sites I'm testing, and they're all independent of each other.
    The problem is when Firefox updates itself. It's annoying to have to answer the update question, and to be routed to the update page 50 times (the first time I use that shortcut after the update). This is also true for plug-ins.
    So is there any way for me to prevent having the update messages appear in each separate user's first run after update?

    You posted here with Firefox 9.0.1, is that the version you are using on that test PC? <br />If so, update to Firefox 10.0.1 and see the new ''(as of 10.0)'' first start after a program update routine. Mozilla changed the add-on compatibility check that kicks in when the Firefox version number has changed. It's probably going to make your issue worse, time wise, after a Firefox program update.
    As far as updating all the Profiles at the same time, '''LastVersion''' data is kept in the '''compatibility.ini''' file in each Profile - ''LastVersion=10.0.1_20120208060813/20120208060813'' - Firefox checks that file each time the Profile is used. When the version number currently being launched doesn't match the saved pref, it triggers the "updated" routine (but it works for the version used being older or newer than the pref).
    The only thing I can think of is to run a '''batch''' file to update the '''LastVersion''' value change in all the Profiles that weren't used for receiving the Firefox update, to match the new LastVersion.

  • How to input data in a database table without knowing in advance table and column configurations

    Hi,
    I have a problem using LabVIEW for input data (manually) in a SQL database. I have about 40 tables in the database, each of them is related to a specific engine component. I need to create a user interface (maybe visualizing the table with a table control) where the users can insert data in the database table fields. Could someone give me some suggestion on how to do it?
    Using the  DB tools insert data.vi I need to know in advance the column configuration of the table, but in my database each table has its own structure! So do I have to create 40 different masks, one for every different table?
    Thanks in advance.
    Michela

    I have not actually used the LV SQL Toolkit, but I will try and offer high level ideas :-)
    when you have retrieved the construction data for a table, you should be able to use array and cluster indexing to aquire the names of the fieds, enough to create a labelled table on the LV Front panel.
    After completing a new entry you can INSERT the entry into the database using the same data.
    Is the SQL toolkit an additional purchase, or included in newer versions as standard? If you post a sample of the cluster/array that you retrieve, I could give you a sample VI to give you some pointers in creating the User Interface table 
    - Cheers, Ed

  • I am moving all my iphoto pictures to seperate folders outside of iphoto.  I have found iphoto slighlty cumbersome.  After I move all pictures from iphoto to a separate file how can I delete all the iphoto photos without deleting the ones in the file?

    I am moving all of my iphoto pictures into seperate folders becuase iphoto is great, but a bit cumbersome when I need to transfer all the pictures to a external drive.
    1) After I move all pictures, how can I delete the iphoto pictures without destroying the ones I have in files
    2) how can I ensure that I have sucessfully captures all the iphoto files so when I delelte from iphoto I have not forgotten any
    3) is there a way to determine what duplicate pictures I have?
    Thanks!

    If you Control click on the iPhoto Library, you'll see a list of folders - one named "Masters". Inside of this folder are all of your original, high-res photos. You can copy them to other folders if you like.
    You can't delete iPhoto pics without deleting the ones in the iPhoto Library.
    You can copy all of your Masters pics out of the Library, ensuring that you won't forget any.
    I don't know of anyway to determine if there are duplicate photos - most (if not all) have a unique name assigned.
    Good luck,
    Clinton

  • How can I erase all content and settings without password

    I just bought this iPad from my friend, when I try to erase all content and settings, it asked me about the password of his Apple ID password. But he already forgot it! So how can I erase everything back to the factory setting, like a brand new iPad, has nothing in it. Please help and thank you very much.

    That is activation lock and cannot be bypassed. He will have to remember his password, or reset it so you can continue with the restore.  There's no way around this as it is an anti theft feature to prevent thieves from being able to use the device. It would be pointless if you could bypass it.

  • How can I change the password on my sons computer without knowing it? he has forgotten the password and I can not update it or do anything without knowing it

    how can I change the password on my sons computer? he has forgotten it.

    Did you create a second administrator account on his machine? Or is there only one account on his machine?
    Alternatively.. Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.

  • How can I update multiple rows in table using a single form button and checkboxes

    I have a project where the visitors can select multiple productos and once the click on the PURCHAS button it updates the selected records.

    You have not mentioned the programming language that you are using, but here's a link that could help you if you are using ASP.
    http://csharpdotnetfreak.blogspot.com/2009/05/edit-multiple-records-gridview-checkbox.html
    Also, have a look at this discussion thread
    http://forums.asp.net/t/1470882.aspx

  • How to select rows or columns of tables without using the mouse?

    2nd post ever! Yeah! \m/
    In Excel, I can select entire rows or columns of data WITHIN TABLES--i.e., not selecting entire sheet rows or columns--by going to any cell on the perimeter of the table, holding down shift+ctrl, and clicking a direction arrow. So for example, if I have a table in columns D-G and rows 1-5, I can highlight row 4 by going to the first or last cell of that row, holding down the shift+ctrl, and hitting the appropriate direction arrow. You might think this is superfluous given that you can use the mouse to select cells. But that becomes cumbersome with large tables, and this method can be more efficient even with small tables.
    Similarly, it's often useful to navigate tables, particularly large ones, by moving from any cell within the table to the end or beginning of that row or column by holding down ctrl and hitting the appropriate arrow key. In Excel, this ctrl+arrow key method also allows you to skip blank cells, which is another very useful navigational feature.
    I tried numerous combos involving shift, ctrl, command, alt/option and the arrow keys. Haven't found a way to do any of this yet.
    Anyone?

    Hi Josh,
    Numbers is organized differently than Excel, and the navigation tools are different too. Many of us miss our particular favorites from spreadsheets past, but this is Numbers, not a clone. The biggest adjustment is to go from huge monolithic sheet-tables containing virtual sub-tables to a simple blank sheet with small tables, sometimes many per sheet. Navigating is no big deal in these small tables and neither is getting from one small table to another, using the Sheets pane.
    Selecting a particular Table is as easy as clicking on the table's name in the Sheets pane. Selecting a particular row, or column, or ranges of rows or columns is done by clicking on the table's row and column labels, left side and top side once a cell is selected in the table.
    Numbers is weak at handling large Tables and documents that are large overall. We know this and many of us still prefer it to the alternative when the tool fits the task.
    Jerry

  • How can i keep all installed themes/personas without having to look them up again in the personas gallery?

    When i open up the Add-ons tool, under themes it only shows the last 10 or so themes i used. Is there any way that you can let us download as many themes as we want so we don't have to search for them again in the personas gallery? Meaning that when we install a theme, it saves that theme for later use and if we don't want that theme we can just uninstall it. Because i have over 20 favorites that i like to switch around every few days.
    Thanks, Rick Perez

    The only thing you need to move is your music folder. Once that is done, you need to tell iTunes where it is located.
    Actually, this is NOT the way to do it. It usually works only because Mac OS is pretty good about keeping track of files. It's not how iTunes is designed to work. Many, many Windows users (and a few Mac users too) have problems when they do it this way.
    -> iTunes for Mac: Moving your iTunes Music folder (5, 11 & 13 are the main steps, paraphrased below)
    The correct way to do it is to point iTunes prefs -> Advanced - iTunes music folder to a new location then go to iTunes menu -> File -> Library -> Consolidate library.
    iTunes will copy everything in iTunes to the new location. Then you can delete the old iTunes music folder n(and any other music you had in iTunes but not in the music folder).

Maybe you are looking for

  • Credit Memo and manual JV in same G/L Accnt?

    Dear experts, I have a return sales scenario created here. When credit memo is created and released (for sales return) the accounting document posts the ED recovered in G/L account 500140. Now when i create excise invoice and use additional excise in

  • I did the software update on my iPhone4s.

    I did the software update to 7.0 and now I can't sync it with my iTunes. I get sync failed. Help.

  • Clouding only in black areas, possibly magnets?

    I've always noticed a cloudy white area in the lower right corner of my monitor where it is black when I watch videos. I thought it was a reflection from my white desk, but recently noticed that it doesn't go away when I move. I set my background to

  • Is it Possible to Change the Checkbox format

    I'm designing a form for my business and I'm using the "Checkbox" style. I don't mind it as an on screen representation of a checkbox but the gradient fill is unprofessional, affected and unclear as a check box on a printed form (I was hoping it woul

  • Integration Connection Issue (Need help!)

    Hello community, I have some issues enabling Cockpit with widgets in SAP Business One. I'm running SAP Business One 9.0 PL10 64-Bit I can enable Cockpit with widgets just fine. It's running on default SQL instance (had some issues with named). Everyt