您的位置:寻梦网首页编程乐园数据库SQL Tutorial
SQL Interpreter and Tutorial with Live Practice Database

  

1 What is SQL?
2 Table basics
3 Selecting data
4 Creating tables
5 Inserting into a table
6 Updating records
7 Deleting records
8 Drop a table
9 Advanced Queries
10 Standalone SQL interpreter
11 Advertise on SQLCourse.com
12 Database Links
13 Technology Jobs

Drop a Table

The drop table command is used to delete a table and all rows in the table.

To delete an entire table including all of its rows, issue the drop table command followed by the tablename. drop table is different from deleting all of the records in the table. Deleting all of the records in the table leaves the table including column and constraint information. Dropping the table removes the table definition as well as all of its rows.

drop table "tablename"

Example:

drop table myemployees_ts0211;

Drop Table exercises

  1. Drop your employee table.

SQL Interpreter

Finished with this SQL Tutorial? Continue on at the SQLCourse2.com site! This site will provide you with more intermediate & advanced instruction and allow you the ability to practice everything you learn as well!


SQL Course Curriculum
<<previous  1 2 3 4 5 6 7 8 9   next>>