Skip to content

Commit cd0ed49

Browse files
kazumikerrSSwiniarskiDusch4593
authored
[New Term] SQL: Drop Table (#1455)
* add drop-tabe.md file * add syntax and example explanations * add database url Co-authored-by: SSwiniarski <[email protected]> Co-authored-by: Brandon Dusch <[email protected]>
1 parent 85f931e commit cd0ed49

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
Title: 'DROP TABLE'
3+
Description: 'Deletes an existing table in a database.'
4+
Subjects:
5+
- 'Data Science'
6+
Tags:
7+
- 'Database'
8+
- 'Queries'
9+
- 'PostgreSQL'
10+
- 'MySQL'
11+
- 'SQLite'
12+
- 'Tables'
13+
CatalogContent:
14+
- 'learn-sql'
15+
- 'paths/analyze-data-with-sql'
16+
---
17+
18+
The **`DROP TABLE`** command deletes an existing table in a [database](https://www.codecademy.com/resources/docs/general/database).
19+
20+
## Syntax
21+
22+
```pseudo
23+
DROP TABLE table_name;
24+
```
25+
26+
The above command removes the `table_name` table from a database.
27+
28+
## Example
29+
30+
```sql
31+
DROP TABLE students;
32+
```
33+
34+
This example removes the `students` table from a database.

0 commit comments

Comments
 (0)