Flash cards
Review the key moves
What is the main idea behind SQL DROP TABLE and TRUNCATE TABLE Keywords?
Lesson checks
Practice each idea before moving on
Short Mimo-style checks built from this lesson's code, terms, and sequence.
Which statement best captures the main point of this lesson?
Complete the missing token from the example code.
___ TABLE Shippers;Put the learning moves in the order that makes the concept easiest to apply.
Drop Table
The DROP TABLE command deletes a table in the database.
The following SQL deletes the table "Shippers":
Example
DROP TABLE Shippers;Note : Be careful before deleting a table. Deleting a table results in loss of all information stored in the table!
Truncate Table
The TRUNCATE TABLE command deletes the data inside a table, but not the table itself.
The following SQL truncates the table "Categories":
Example
TRUNCATE TABLE Categories;