what is the difference between TRUNCATE and DELETE command
in SQL
Answer Posted / nithya
The delete statement will result in the table spaces or
memories would remain as the current size and table
structure remain in the database. Delete is not effective
when you use it to remove all data from a table, because it
takes up storage spaces due to unclear memories.
The truncate statement will result in clearing table spaces
or memories and the table structure remain in the database.
Therefore it free table storage spaces and use it only when
you need to remove all data from a table.
| Is This Answer Correct ? | 24 Yes | 3 No |
Post New Answer View All Answers
My requirement is like in database some defects are present and i need to clean them.To be brief for example every employee should have active assigments.So for those records which are not having status as active or null ,i need to update the roecords using API with the correct value. Client will provide a flat file for the records whch are defected.So i need to run the API for those records (flat file)and update the data in database. So my question is how to handle this requirement.Is there any existing API for this purpose?If yes then please send me the NAME. How to update the records in the database using flatfile. Any pointer will be appreciated.Thanks in advance.
What is an Oracle database Partial Backup?
How many segment are present in Oracle Manufacturing
WHAT ALL DIFFERENT KIND OF FUNCTIONS AVAILABLE WHILE DESIGN UNIVERSES?
Explain how to account for bank charges deducted from amount received against an invoice. : oracle accounts receivable
what are the interface and api table for receipts conversion in oracle receivables? : oracle accounts receivable
Give two methods you could use to determine what DDL changes have been made.
How would you determine what sessions are connected and what resources they are waiting for?
what is the link between suppliers and banks in ap module in oracle apps? And also query?
PURCHASE ORDER TO PAYABLES WHAT ENTREIS WILL HAVE
What is the difference between conversions and interfaces? : oracle accounts receivable
What is mrc and what is its use? : oracle accounts receivable
while creating requisitions i am unable to see the list of organisation can anyone help me out ?
What are different types of receipt reversals ? Explain them : oracle accounts receivable
What view would you use to determine free space in a tablespace?