No products in the cart.

Difference between drop command and delete …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Difference between drop command and delete command
  • 1 answers

Sia ? 3 years, 6 months ago

Sr. No. Key DELETE DROP
1 Purpose DELETE Command, removes some or all tuples/records from a relation/table DROP Command, removes named elements of schema like relations/table, constraints or entire schema.
2 Language DELETE is DML. DROP is DDL.
3 Clause Where clause is used to add filtering. No where clause is available.
4 Rollback Delete command can be rollbacked as it works on data buffer. Drop command can't be rollbacked as it works directly on data.
5 Memory Space Table memory space is not free if all records are deleted using Delete Command. Drop command frees the memory space.
6 Problem DELETE command may face shortage of memory. DROP Command may cause memory fragmentation.
6 Interaction SQL directly interacts with database server. PL/SQL does not directly interacts with database server.
7 Orientation SQL is data oriented language. PL/SQL is application oriented language.
8 Objective SQL is used to write queries, create and execute DDL and DML statments. PL/SQL is used to write program blocks, functions, procedures, triggers and packages.
http://mycbseguide.com/examin8/

Related Questions

Case study questions of chapter 1
  • 0 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App