Replace the data in the table from other table

Iam creating a backup of table Order by this query:
create table orderbckup as select * from order; - this works
For the first time i have to create a orderbckup table but every month i have to replace the data in orderbckup from order table. Is there any way where i can copy the data from order and repalce the data in orderbckp - I cannot use insert as it adds the rows. Or do i need to delete the old table and create it again or can i use update. If so can anyone plz let me know

882431 wrote:
Iam creating a backup of table Order by this query:
create table orderbckup as select * from order; - this works
For the first time i have to create a orderbckup table but every month i have to replace the data in orderbckup from order table. Is there any way where i can copy the data from order and repalce the data in orderbckp - I cannot use insert as it adds the rows. Isn't that exactly what you want to do - add rows?
If I understand you, the problem isn't with adding new rows; the problem is how to remove the old rows.
Or do i need to delete the old table and create it again or can i use update. If so can anyone plz let me knowInstead of dropping the table and re-creating it, you can TRUNCATE the table and then use INSERT:
TRUNCATE TABLE orderbackup;
-- At this point, orderbackup has 0 rows
INSERT INTO  orderbackup
SELECT  *
FROM    orders       -- ORDER is a reserved word in Oracle, so it's not a good table name
;TRUNCATE TABLE is faster than DELETing all the rows, because it doesn't save redo information. (That means you can't ROLLBACK a TRUNCATE statement, but you can rollback a DROP TABLE statement, either.)

Similar Messages

  • Is there any way to get the files from other computer ?

    Hai all,
    I have 2 computers connected. I know the IP address of other computer. Is there any way to get the files from other computer. (for e.g. I want to get the files from specific folder. In Java netwroking is it possible? (Any programs)
    regards,
    Namanc

    Bro Take it easy.
    Think you need to send a Image file named ("abc.gif")
    now develop a server using ServerSocket and connect it in local IP and any PORT
    For example i think ur server is connected in "localhost" and 9000 port.
    Now make ur server educated using some commands.
    For example:
    FileName: <File Name String>
    [Means new file is sending by connected client]
    FileSize: <File size long or int value>
    [ So that ur server can determind about the total length of sender file]
    DataModeOpen
    [Now your client will send its image data, this command means your client software is sending data]
    fjadlkfjaofaijojfwoeiurfodkjflsajlfksa
    l23j4lj23lkjlasjfoq23j4rokjelfkjasldkf
    2o3j4lk2j3ljslakdjf2l3j4 l23kjlk23k4j
    DataModeClose
    [Means file sending finished]
    Close
    [Means your client connection is closed]
    Now develop a client supporting this command.
    For example(Server):
    String getFileName=null;
    long getFileSize=0;
    public handleCommand(String getCmd) {
        if(getCmd.startsWith("FileName")) {
                String[] splitData=getCmd.split(":");
                this.getFileName=   splitData[1];
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("FileSize")) {
                String[] splitData=getCmd.split(":");
                this.getFileSize=Long.parseLong(splitData[1]);
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeOpen")) {
               //data mode open so receive data
              receiveData();
              outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeClose")) {
              //close client socket
             getClientSocket.close();
    }For client:
    DataInputStream dataIn=null;
    BufferedOutputStream bout=null;
    public sendFile(bytes[] getBytes) {
            //if ok found then do other or show error message
        if(sendCmd("FileName:"+getFileName)) {
            if(sendCmd("FileSize:"+getFileSize)) {
                if(sendCmd("DataModeOpen")) {
                   bout.write(getBytes);
                } else {
                   showError(3);
            } else {
                   showError(2);
       } else {
            showError(1);
    }i think it will help u

  • Replace the Logicboard from a newer Mcb

    Is it possible to replace the Logicboard from a Mcb A1278 mid 2009 with a Logicboard from a Mcb A1278 mid 2012 ?
    Thanks, Tom
    2,26 GHz Intel Core 2 Duo
    8 GB 1067 MHz DDR3
    NVIDIA GeForce 9400M 256 MB
    OS X 10.9.4 (13E28)

    I have my doubts.  In discussions with the technicians at genius bars, even if they look the same, often from one generation there are physical differences.  Logic boards are expensive and you would be involving yourself in a high risk situation.  You are looking at a 4 generation difference.
    Ciao.

  • How to read and store the documents from other system to own system.

    Hi Experts,
    i need to read the document from other system (Say from other connected R/3 system) and then i need to save it in my system.
                     Please suggest how would i proceed?
    Any helpful suggestion will be rewarded with points.
    thanks
    Snehasish

    Hi Abaper
    I think I havent explained my problem well. Here I am explaining it again..
    I want to pull an  *.excel/ *.csv file through ABAP code.The target file that I want to access in my ABAP code is stored into another PC in the same Local area network under some directory say 'c:\temp\credit.csv'.
    I have the logon information of the target file's  PC.
    Please help me with code if anyone of you having.
    Thanks in advance.
    Rgds,
    Snehasish
    Edited by: Snehasish Das on Apr 29, 2008 2:18 PM
    Edited by: Snehasish Das on Apr 29, 2008 2:33 PM

  • Please, I'm in Brazil. I can buy items in the store the USA from other countries?

    Please, I'm in Brazil. I can buy items in the store the USA from other countries?

    No.
    (65965)

  • What does Factory Unlocked International Version GSM Only? what's the difference from other iphon5 specs? pls explain

    What does Factory Unlocked International Version GSM Only? what's the difference from other iphon5 specs? pls explain

    Only GSM/LTE iPhones can be purchased unlocked. CDMA iPhones are always locked to their specific carrier for CDMA use, though some may either have the GSM portion unlocked or will unlock upon request assuming any necessary requirements are met.
    Regards.

  • I just moved to the US from other country. How do I move my current apple id to US iTunes store?

    I just moved to the US from other country. How do I move my current apple id to US iTunes store?

    Welcome to the Apple Community.
    Click on your account name in the top right corner of the iTunes store in the iTunes application on your computer, enter your password and click the "view account" button. Navigate to the Apple ID summary where you have the option to "change country or region".
    In order to change your location, you will need a credit card registered to an address in the location you are trying to change to.
    You cannot change your location if you have credit on your account, if you are unable to spend your credit and leave a balance of zero, contact Apple, which you can do through iTunes Store Support.

  • I have an iPhone 5 from verizon, can I buy a sim card in europe and replace the one from verizon?

    My iPhone5 is model A1429.
    I purchased it through Verizon within the last 9 months.
    Can I just buy a new sim card and replace the Verizon one while I am in Europe for 25 days?

    After 10 days in Scandinavia, this is what I have learned:
    1.) getting the mini or nano sim has been impossible _ in Sweden, Norway and Denmark the carriers I worked with have the old sim cards that they suggest that you trim down to nano size.  The one I tried was still too thick to fit in the sim card drawer on my iphone 5.
    2.) Verizon was very cooperative and unlocked my phone before I left the USA.
    3.) The Verizon plan may be competitive with plans that cover multiple countries in Europe.  The pricing is sufficiently confusing that providers are hard to compare, ie. initial plan / sim card purchase amout, voice, data, text send / receive rates, varying monthly or package  amounts of mintes and data allowances.
    4.) Keeping cellular data off, using wi-fi has mostly kept cellular data usage low, with a few exceptions resulting from data use for either google or i maps and a probable butt-call or mistaken program left on without wi-fi.
    5.) I am still going to check out France's rate, but I won't report more if the story stays the same.
    Good luck out there.
    Thank you to all that responded.  Even though the information did not help resolve the problem it gave us traction.

  • How to populate a filter field in one page with the value from other page

    Take the classic report with form application.
    on page 1 (report) I have a filter (dbname) for the records that will appear in the report. Say that, I enter "ap02" in the filter and all records where dbname starts with "ap02" will display. It works ok.
    Then I click on "create" button and page 2 appears. I enter all fields except the dbname. This field is generated, at "pre-insert trigger on the table".
    What I want is when I press the button "create" on page 2 to pass the value of the generated dbname field into the filter in page 1 so when that page refreshes I will have only one record on the report page (1). I understand that the dbname at the page 2 level still empty because it is generated by the trigger. How do I have access to that info to populate the filter.
    Thanks for your assistance

    Joe - Work backwards from the value generated during the execution of the trigger. You have the value there so you could save it into a package variable right then (create a package with a variable and assign the value to the variable). Then create a process on the page (after the DML process) to assign the value of your package variable to a page item. Then in the branch back to page 1, pass the item. (Or without messing with the branch, the process could simply assign the package variable directly the the page 1 item -- :P1_ITEM := my_package.my_var; ).
    An alternative would be to use the "returning into" feature of DML to capture the PK of the created record into an item. Then the next page process could use the PK to fetch the new row and get the dbname value for passing to page 1.
    Another option would be to update session state directly in the trigger.
    Scott

  • How to read the value from other cubes ??

    Dear All,
    I have requirement to do some calculation where part of number there must be got from other info-cube.
    e.g.
    Cube 1
    Has: Ch1, Ch2, Kf1, Kf2, Kf3
    Cube 2
    Has: Ch3, Ch4, Kf4, Kf5
    Then the requirement need to compute:
    KF1 =  KF4 * KF3
    Let say that our planning area use Cube 1.
    Means, to get the value for KF1 we need to read data from cube 2.
    I've tried to use this function: RSDRI_INFOPROV_READ
    But it can't fetch the data. It caused when we go "manage" to
    cube 1, the status for the corresponding request is yellow.
    If we change the status into green, then we can get the record by that function.
    My Questions is
    Is there other way that can fetch data from other cube ??
    Do you have any suggestions ??
    Or ..
    In my explanation above, is there some thing missing ?
    Regards,
    Niel.

    Hi Olivier,
    Really thanks for your response... 
    But i still have distraction regarding your preceding posting ..
    in a query, yellow requests from a trans cube can be read with the variable 0S_RQTRA (most current data) on 0REQUID.
    I had a look into the corresponding exit ( FM = RSVAREXIT_0S_RQTRA ) and can see that SAP is filling 0REQUID with VALUE 'REQ_TRANS'
    You mean, that we can check what status happening in corresponding info-provider by using this function: RSVAREXIT_0S_RQTRA . Am i right ?
    Could you clear me up what the objective is for ?
    I've tried your suggested function:
    RSSEM_INFOPROV_READ
    And yes it can take it .. But why it couldn't fetch all data ?
    And also in RSSEM FG, i saw this function:
    RSSEM_INFOPROV_READ_RFC
    Do you know what the objective is for ??
    Still need your guidance.
    Regards,
    Niel.

  • Can I replace the video from a previously published vidcast?

    In an effort to increase the quality (but not change the length or content), I'd like to re-post a video. However, this will change the file size.
    If I replace the video file, do I need to change that item's XML metadata (specifically, the attribute 'length="77928200"')? If I replace the video and people download it before the updated XML is reflected on iTunes Store, will it break the download or mess anything up, or is the filesize data just "FYI" info?
    My Vidcast URL:
    http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=294706812
    My FEED:
    http://www.realartusa.com/vidcast/xml/RA_cast-itunes.xml
    Thanks!
    andy nick

    I don't know the answer to this, and Apple's Podcast Tech Specs page doesn't elaborate: but my guess would be that it won't make any difference - a download once started should continue until the actual file end is reached. All you can do is try.

  • How do you hide the identity from others

    How do I hide the wireless identity from others?  I am using airport + time capsule.

    I think you may be referring to the option to "close" your wireless network. If you enable this option, the theory is that other users around you will not "see" the name of your wireless network.
    But, this "feature" is long out of date. There are dozens of free utilities on the Internet that will display your network name in seconds. All the neighborhood teenagers who are looking for free Internet already have the applications.
    On the other hand, it might help keep a few honest neighbors from seeing the name of your wireless network if that would be important to you.

  • How do I stop the texts from other iPhone users trying to reach the person who has my old phone number?

    I no longer have cell phone service but I still use my iphone every day for apps and imessage. Now someone has my old phone number. It seems that this person does not have a iphone. Everytime one of their friends with an iphone tries to text them the message goes to my iphone. I have tried many things to stop this. I took my old phone number off my apple account and I took out my old sim card. But I still am getting texts from other iphones attempting to reach whom ever has my old phone number. HELP please. This person is very popular, at first it was funny now its annoying. I'm sure the person with my old number is even more upset than I since they are actully paying for service.

    Hello there, lalaysa.
    The following Knowledge Base article offers up some great recommendations for unlinking your old phone number from your device:
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    Unlink a phone number
    To remove a phone number from an Apple ID, sign out of FaceTime and Messages on your iPhone:
    Settings > Messages > Send & Receive. Tap your Apple ID, then tap Sign Out.
    Settings > FaceTime. Tap your Apple ID, then tap Sign Out.
    This should remove your phone number from other devices using the same Apple ID with FaceTime and Messages. If the phone number is still available on other devices after you sign out of FaceTime and iMessage on the iPhone, you may need to sign out of iMessage and FaceTime on all your devices, then sign in to FaceTime and Messages again on devices you want to use.
    Note: If you no longer have access to the iPhone that is using the number you want to remove, reset your Apple ID password.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • How do I replace the frame from the monitor on my GX740?

    Problem: When I move the hinges on my laptop, sometimes the screen goes black until I move it into a different position, like the light disconnects (in fact, I'm pretty sure that's exactly what happens, as I can still see some stuff on the screen; it's just not lit). Having had LCD problems in the past with other machines, I figured "hey, probably just a loose connector, it happens; I should be able to just lock that strip back in place quite easily" (why they don't just make those connectors less prone to falling out - especially ones located in or near hinges - eludes me).
    Sure. If I can just get inside the monitor frame. Which it seems I can't. I removed the screws, but when I tried to pull off the plastic frame, it cracked. The plastic frame around my monitor now has visible cracks in it.
    So now I need to know not only how to remove this frame, but if possible, also where I can get a replacement for just that one part. I'll gladly take just an answer to the first part and live with the cracked frame as long as I can do something about the loose connector, but if there's an answer to the second part as well, that'd be really neat.
    So...how do I remove the frame? Where can I get a new one now that I've ruined this one? Are there spares? Are they expensive?
    I'd greatly appreciate a quick answer to the frame removal question, as I intend to bring this computer on a trip overseas and would like the LCD light to not have disconnected completely by the time I arrive, so I'd like to properly attach it before it's time to leave.
    I've never had a machine that's so hard to open. This strikes me as quite user-unfriendly design, especially given how little it takes for an LCD connector disconnect, especially one located in the hinge area of a laptop.

    GX720 disassembly guide
    https://forum-en.msi.com/moderator/assembly-guides/ms-1722-disassemble-sop.pdf
    GX700 disassembly guide
    https://forum-en.msi.com/moderator/assembly-guides/assemble-1719.pdf
    I'm not certain they are the same as the GX740 but I would I imagine they are very similar.
    As far as finding another bezel, your best bet might be ebay.
    http://www.storesavings.com/products--search-msi-bezel.html?aid=31738-4176544-53943996&utm_source=google&utm_medium=cpc&utm_campaign=watches&utm_content=&utm_term=+msi%20+bezel&utm_a=1s5&utm_t=b&utm_n=s&utm_c=34127592272&utm_p=&utm_m=&gclid=COiglouo670CFUoV7AodN1UA1g&qo=6143279&so=1 That might work as well, not sure though.

  • I am not able to access the application from other PCs in network

    Hi Friends,
    I am a newbie in this field and building an internal application for employees of my org. The HR will enter all the informations regarding a particular employee and it will get stored in the Oracle DataBase(10g).When the admin users will want to know information about a particular emp they will put the emp_code and it will retrieve all the information of that particular emp.For that I am using Oracle AS(10g).After the deployment of the apllication(.war file) in the AS(10g), when I access the URl- http://10.0.37.51:7777/emp/... from my machine (where 10.0.37.51 is the IP Address of my system where server is installed) the application runs properly but when i give the same url from other pcs the whole application does not run properly it gives an error msg http://d6z5sb1s:7777/...not accessible.. can any of my forum friend help me out to solve the problem.I will be thankful to you..
    Regards,
    Prasenjit Biswas
    [email protected]

    Here I am using Java Type IV for database
    connection.
    So,there was no necessity of creating DNS.How your app communicates with db shouldn't matter for the end user. Still, you may want to use a functional network name also for the thin client driver connection string.
    So,is there any other way to solve this problem.What is the problem really? Do you not use dns for network naming? Maybe you have to manage the hosts file on every client then.

  • Delivery the product from other plant directly

    hi
    we have 2 companies A, B. Company A receive order and give Company B to production, then Company B directly ship to customer. We are using deliviery plant for this scenario. However, sometimes the production will via Company A, then Company A delivery the product to customer. In this case, using delivery plant is not a good way. As the product require to stay in Company A for few days. any suggestion in this case? thanks

    Looks like its a stright forward Inter company transactions.
    in the first case it is a intercompany sale where company A receives the order and you change the Delivering plant to company B's Plant so that the delivery is triggered from company B.
    in the second case, you trigger a  Inter company Plant to Plant  stock transfer requistion from Company A to company B , and there by the stock comes to A and from comp A you can ship to to the customer.

Maybe you are looking for

  • AppleMac Air to TV

    How can I send the image and sound from my AppleMac Air to my TV? I have a HDMI lead and a HDMI convertor to the Mac but I'm not getting sound just the image

  • Spaces disappear when searching WebHelp

    The HTML looks like this: (see attached code) So in the WebHelp it looks like this: In most systems, the <b>Information</b> page is the first ... But if you do a search in the WebHelp (on the Search tab) and "Highlight search results" is selected (wh

  • Query to find the sum of different groups of same column

    Hi , I have a table as follows: customers custid credit amt month 001 C 2000 Jan-2012 001 D 5000 Feb-2012 001 C 3000 Mar-2012 001 C 3000 Apr-2012 001 D 7000 May-2012 I Have to write a single query to calculate the sum of credit and sum of debit value

  • Data size: -535703600 exceeded the defined field size: 4000.

    Hi experts I am trying to access BLOB column from database using direct database request. I am getting the following error. A general error has occurred. [nQSError: 46034] Data size: -535703600 exceeded the defined field size: 4000. (HY000)

  • Macbook Pro shuts down for no reason

    Hoping someone can help me with this recurring problem on my Macbook Pro... I'll be working on my computer when all of a sudden an option comes on the screen "Would you like to shutdown computer" options include "sleep, shutdown, cancel" if I make it