SQL Basic
SQL Advanced
SQL Functions
| SQL Drop |
|
Indexes, tables, and databases can easily be deleted/removed with the DROP statement. The DROP INDEX StatementThe DROP INDEX statement is used to delete an index in a table. DROP INDEX Syntax for MS Access:
DROP INDEX Syntax for MS SQL Server:
DROP INDEX Syntax for DB2/Oracle:
DROP INDEX Syntax for MySQL:
The DROP TABLE StatementThe DROP TABLE statement is used to delete a table.
The DROP DATABASE StatementThe DROP DATABASE statement is used to delete a database.
The TRUNCATE TABLE StatementWhat if we only want to delete the data inside the table, and not the table itself? Then, use the TRUNCATE TABLE statement: TRUNCATE TABLE table_name |
SQL Drop