No products in the cart.

Different between drop table and drop …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Different between drop table and drop clause of alter table
  • 1 answers

Yogita Ingle 4 years, 5 months ago

Alter is used to modify an existing table, like adding a row or column. Alter preserves the existing data. Example, deleting a column won't affect the data in the other columns. Changing a column datatype will result in conversion of existing data, which may result in data loss when there are errors such as overflows, under flows, or integrity constraint violations.

Drop is used to remove a table completely. You can drop and then recreate a table, but you will lose all the data it.  If that's an issue, then Alter is the preferred solution.  However, not all changes you might want to a table definition can be done with Alter, so your only option might be to drop/create.

http://mycbseguide.com/examin8/

Related Questions

What are called tokens
  • 2 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