bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL DROP TABLE and TRUNCATE TABLE Keywords

Flash cards

Review the key moves

1/4
Core idea

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.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

___ TABLE Shippers;
3Order

Put the learning moves in the order that makes the concept easiest to apply.

Note : Be careful before deleting a table.
The following SQL deletes the table "Shippers":
The DROP TABLE command deletes a table in the database.

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;

Previous

SQL SELECT TOP, LIMIT and ROWNUM Keywords

Next

SQL UNION Keyword