Different between drop,delete,truncate.

hi.
kindly what is the different between drop table,delete table,truncate table.
thanke you all .

Hi
Drop is a ddl statement which removes the existence of the table along with the data.
Delete is a dml statement which removes only the data from the table.
Truncate is a ddl statement which removes only the data from the table.
1) You can specify condition in delete statement which would remove only the specific data from the table. You cannot specify condition in truncate statement so all the data would be remove.
2) Delete keeps the records in buffers/undo segment so that you can rollback. Whereas truncate does not so you cannot rollback, moreover implicit commit is done on issuing of truncate
3) Truncate also resets high water mark of the table whereas delete does not.
Regards

Similar Messages

  • Exchange rate is different between records in OB08 and records in document.

    Hi Gurus,
    The exchange rate is different between records in OB08 and records in calculated amount in line item. How does it happen? Not all of the documents in the same period has this problem.
    For example, a document A created by FB05 on Jun 30 2010.
    In OB08, the exchange rate is 6.80000. This rate was the same in the header of document A.
    In the line item of doc A, I calculated the amount for line itme 1 and 2. Line itme 1 shows the exchange rate is 7.90000. Line item 2 shows the exchange rate is 16.0000. ( The exchange rate is not that exactly an interger. I put a similar exchange rate as an example.)
    Could you please throw some light on these? Why some documents are okay but for some, the exchange rate is so different?
    I just found that the exchange rate of some of the document line item calculated is from another currency. It shows in the line item (in question) button "More Data". Shall I know how the exchange rate was got from another currency exchange rate?
    Thank you.
    Emma
    Edited by: qun yang on Aug 2, 2010 10:49 AM

    Issue solved by below solution:
    Existing:
          append lines of vit_final to s_s_if-maxsize to e_t_data.
          delete vit_final to s_s_if-maxsize.
        else.
          append lines of vit_final to s_s_if-maxsize to e_t_data.
          delete vit_final to s_s_if-maxsize.
    New:
          append lines of vit_final to e_t_data.
          delete vit_final to s_s_if-maxsize.
        else.
          append lines of vit_final to e_t_data.
          delete vit_final to s_s_if-maxsize.

  • Release of space after delete/truncate table

    Hello,
    How does release of space after delete/truncate table works? Is the space used before deletion released once delete is complete or not? Will I see the space occupied by deleted table as free in dba_segments or will I need to reorganize the table (drop and recreate again?). Reason why I am asking is that I can see table with 0 rows, but in dba_segment I can see it is occupying few gigabytes....
    Thank you

    Here is a little illustration for you;
    SQL> conn ogan/password
    Connected.
    SQL> create table ogan_deneme as select * from all_objects;
    Table created.
    SQL> select count(*) from ogan_deneme;
      COUNT(*)
        228470
    SQL> set line 1000
    SQL> set pagesize 1000
    SQL> select * from dba_segments where owner='OGAN';
    OWNER    SEGMENT_NAME        PARTITION_NAME           SEGMENT_TYPE       TABLESPACE_NAME                HEADER_FILE HEADER_BLOCK      BYTES     BLOCKS    EXTENTS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE  FREELISTS FREELIST_GROUPS RELATIVE_FNO BUFFER_
    OGAN      OGAN_DENEME          TABLE              SYSTEM                                 854       319981   *30408704*       *1856*         *44*          65536                       1  2147483645                       1               1          854 DEFAULT
    SQL> truncate table ogan_deneme;
    Table truncated.
    SQL> select * from dba_segments where owner='OGAN';
    OWNER    SEGMENT_NAME        PARTITION_NAME           SEGMENT_TYPE       TABLESPACE_NAME                HEADER_FILE HEADER_BLOCK      BYTES     BLOCKS    EXTENTS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE  FREELISTS FREELIST_GROUPS RELATIVE_FNO BUFFER_
    OGAN      OGAN_DENEME           TABLE              SYSTEM                                 854       319981      *65536*          *4*          *1*          65536                       1  2147483645                       1               1          854 DEFAULT
    SQL>Hope it Helps,
    Ogan

  • What's different between statfulacl and detailedacl

    i just confused that what's different between stateful ACL and Detailed ACL in Hyper-V 2012R2, i know stateful ACL will create return traffic automatically
    for example:
    Add-VMNetworkAdapterExtendedAcl –VMName “ApplicationServer” –Action “Allow” –Direction “Outbound” 80 “TCP” –Weight 100 –Stateful –Timeout 3600
    if i delete “-statful” and “timeout", then what‘s will happen,any performance issue or something else?

    Looking up the PowerShell command in TechNet will explain each parameter.  As will the PowerShell command Help
    Add-VMNetworkAdapterExtendedAcl -parameter Stateful.
    http://technet.microsoft.com/en-us/library/dn464289.aspx
    If you do not understand the explanation provided by TechNet or Help, please post your question about its definition back here.
    . : | : . : | : . tim

  • Same colors display differently between Illustrator and Photoshop

    Hi there,
    I would love to know why the same colors display differently between my Photoshop and Illustrator apps (CS3). For example, a logo will display much darker or more vividly in Illustrator than in Photoshop, same file, same colour values. My color settings are synchronized from Adobe Bridge to North American Pre Press 2. I've opened the logo file in RGB color mode, in both apps. It would be so helpful if both apps displayed the colours consistently.
    Any suggestions on how to do this would be wonderful!
    Thanks!
    Bobbie

    Hello Bobbie,
    I am using CS3 too and let me tell you that this Illustrator version is the worst ever. You best bet is to take the "Eye Drop" tool and select the Photoshop element to match the color.
    CS4 also have problems when handle placed items. Sadly I can tell you that CS2 is more reliable than CS3 and CS4.
    Not even if you use Pantone colors will match, Illustrator will change the colors making it impossible to match. "Adobe Quality"

  • What is the different between Sharepoint fast search service and Sql server fulltext search?

    HI ,
    I want to kow what is the different between Sharepoint fast search service and Sql server fulltext search?
    Or Can I abstract the Sharepoint fast search from the Sharepoint platform as a isolate component?
    Thank you.
    James

    They are very, very different beasts.
    Firstly FAST Search for SharePoint is the old name for the product and is only relevant for SharePoint 2010 not 2013. It got merged into the standard SharePoint search for the 2013 release.
    SharePoint search is aimed at providing a Bing or Google like experience for your intranet content, as well as providing some nifty features that are purely SharePoint releated along the way. That means it can crawl SharePoint content, file shares,
    outlook mailboxes, internal and external websites and probably fifty other different things if you really tried. Whilst i'm not an expert on SQL full text search I believe it's intended to provide a search feature for content held within SQL databases
    and tables.
    Can you run SharePoint purely for Search? Yes, definitely.

  • What is the different between Logical complex join and Physical join?

    hi,
    Do somebody know what is the function different between logical complex join in BMM layer and physical join in physical layer?
    Thanks.

    Thank you very much1
    I understand their differentiation:
    In the BMM Complex join (intelligent), means OBI picks the best way from possibly many different ways to join using physical join. FK join forces the same join always, which limits flexibility.

  • What is the different between payment methods Wire and EFT

    Hi All
    can anybody tell me What is the different between payment methods Wire and EFT ?
    Regards ;

    WIRE:
    Wire is transfer of amount due directly to the supplier's bank it is an electronic transfer of funds
    This mode of payment is used for international suppliers.
    It can be paid in foreign currency or USD.
    Wire payments are same day payments.
    EFT:
    EFT ensures funds transfer from one bank account to another using electronic links.
    Can be used to make payments into domestic banks (within US) in USD only.
    It is faster than check payments.
    Hope this helps.

  • Report to Find different between PCR & Schemas

    hi guru's,
    Can Any tell me the Report to Find different between PCR & Schemas in Two Clients,(For examle from 4.7 to 6.0)
    Regards,
    Bala

    Hi Bala,
    The following link will help you.
    PCR and SCHEMAS
    Thanks & Regards,
    Sandip Biswas

  • Payment terms different between sales docs

    Hi Gurus.
    Why do I have payment terms different between sales doc and billing doc for the same customer?
    Detail: the sd and company code vision has the same value in customer master data (xd03, vd03).
    Thanks in advance!
    Renato

    Dear Renato
    Go to VA02, input the sale order and execute.  There click on Environment from top menu bar followed by changes.  You would find four options to choose.  Select
    -  Additional info and
    -  Time of Change
    This would give you who have changed the datas related to that sale order.
    thanks
    G. Lakshmipathi

  • Why do my RAW files appear different between programs?

    I have rendered a series of three RAW images as an HDR file in Photoshop CC, saved as a 16-bit TIFF file, and imported it into Lightroom. The image appears different between the two programs. The Lightroom image appears to have some editing done already and is not nearly as flat as the image in Photoshop. I have made sure my Adobe software is up to date concerning both programs and the camera raw information that can be updated via Adobe.

    The iPad stores the raw photo data, but displays an iPad optimized version of the original image in its place.
    This image is usually an optimized JPEG image, so the quality will not be the same as the raw image file.

  • Parent Child Relationships between Drop Down Menus

    I  have a request for additional functionality.  Parent child relationships between drop down lists.
    for example,
    the first dropdown, could contain North, South, East, West & assign values of 1, 2, 3, 4.
    the second dropdown, could contain a filtered set of data depending on the option from the first dropdown,
    so the data could look like this in the second drop down:
    Manchester 1
    Leeds 1
    London 2
    Southampton 2
    Norfolk 3
    Newquay 4
    so if I select North in the first dropdown, the second drop down would contain all the items with a value of 1, so Manchester & Leeds.
    I have managed  to get round this using conditional show & hide, but it is much  messier on the design screen & also the way in which the data
    will be returned is very very messy - seems like a simple addition which would improve the functionality  no end.

    Hi,
    We have an "ideas" page where you can see if others have added this already, I believe there are some similar, and you can add your vote.  If you don't find something that fits you can add your idea here:
    http://forums.adobe.com/community/formscentral?view=idea
    Thanks,
    Josh

  • Why is different between consumption and spare part material Amount in Accounting?

    I go to mb51
    in Accounting document there is different
    l found the standard price was changed in the last . it was changing from 850,000 to 1000
    i don't know why is different between consumption and spare part material Amount Accounting??? please help me . how can I solve it?

    pay attention just first document has a different accounting amount . in others there aren't different .see these screenshot :

  • Playlist order different between iPhone and iTunes

    I updated to 3.1 and iTunes 9. In iTunes lets say i have 5 songs in a playlist. Lets say I Will Not Bow, Let The Beat Build, So Sharp, Good Time, and Fall. But on my iPhone in the same playlist they are ordered Let The Beat Build, Good Time, I Will Not Bow, So Sharp, then Fall. Why would they be ordered differently between the two? Anyone else having this problem?

    There is a solution for this problem. Right click your smartlist; select edit smartlist; UNCHECK "live updating"; Then sync your files. This will adjust your device (iPod, iPhone) list to the way it is in your iTunes list.
    It does mess up adding new songs to your smartlist if you use a specific method of list names which adds a song automatically. If this is the case, check "live updating" using the method above, add your song, then uncheck it again to keep the order as it is in iTunes.
    Hope this helps. It works for me everytime a list messes up. I read about this fix somewhere in these forums, tried it and it works like a charm!!
    ks

  • What is the different between statement and preparedstatement?

    hi,
    recently i have attended a telephonic interview. they asked me what is the different between statement and preparedstatement? and when u will use them? Hi! can any one say me the original difference??

    sorry dear,
    i am already shortlisted. and monday is my HR round.
    . Every 1 is not like u.
    So you have read the examples and explanations that you found when you googled, and you have read the javadoc and you still don't understand? And you are shortlisted? For what? I hope you won't do server programming.
    I will give you a few hints.
    Escaping of data
    Storing of dates
    Safer
    Faster

Maybe you are looking for

  • How to do Multiple digital signatures?

    I have created a form in Acrobat 9 Pro with multiple digital signatures. This is an approval form that is emailed "up the chain of command".  I have enabled extended features in Adobe Reader so that users without Acrobat 9 can digitally sign the form

  • How do I know what Roles are assigned to specific position number?

    All, We are on the Position based security right now. I would like to know what roles have been assigned to Position number? Is there a table that I can check for the list of Roles that are assigned to position? Please advise. From Pranav

  • Probelm seaching an attribute

    Hi, I am trying to search for an user in the LDAP and ended with the following error Problem getting attribute: javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object];No Such Object]; remaining name 'ou=people' I have given the fo

  • Enlightenment Problem

    I am new to Arch, and DEs in general, and I have having a problem starting Enlightenment.  I have installed X as per the beginner's guide, and I have got it to work.  But when I try to start Enlightenment, I get an Enlightenment Error: Enlightenment

  • Printing with applet

    hi i am trying to print some text with applet but it is not working here is my code sMsg="printing a applet is tough job"; // Find the default service DocFlavor flavor = DocFlavor.BYTE_ARRAY.AUTOSENSE; PrintService service[]= PrintServiceLookup.looku