-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docs] add validity period during which users can restore a deleted table #8788
Changes from all commits
f159e2b
7e3a89e
0f13f14
b6eaa25
9901b00
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# DROP TABLE | ||
|
||
## description | ||
## Description | ||
|
||
This statement is used to delete a table. | ||
|
||
Syntax: | ||
## Syntax | ||
|
||
```sql | ||
DROP TABLE [IF EXISTS] [db_name.]table_name [FORCE]; | ||
``` | ||
|
||
Note: | ||
|
||
1. After executing DROP TABLE for a while, you can use RECOVER statement to restore the dropped table. See RECOVER statement for more detail. | ||
2. If DROP Table FORCE is executed, the table will be deleted directly and cannot be recovered without checking whether there are unfinished activities in the database. Generally this operation is not recommended. | ||
- If it has not been more than a day since a table was deleted by using the DROP TABLE statement, you can use the [RECOVER](../data-definition/RECOVER.md) statement to restore the table. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should pay attention on this RECOVER page: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jaogoy That's why "If it has not been more than a day since a table was deleted by using the DROP TABLE statement, you can use the RECOVER statement to restore the table." The description in the RECOVER statement is incorrect and need to be revised. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK. |
||
- If DROP Table FORCE is executed, the table will be deleted directly and cannot be recovered without checking whether there are unfinished activities in the database. Generally this operation is not recommended. | ||
|
||
## example | ||
## Examples | ||
|
||
1. Drop a table. | ||
|
||
|
@@ -34,7 +34,3 @@ Note: | |
```sql | ||
DROP TABLE my_table FORCE; | ||
``` | ||
|
||
## keyword | ||
|
||
DROP,TABLE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shell we modify those format things in such unfied ways?
I see that a lot of other pages haven't been modified yet.
And, will we remove the "Keyword" section? (I think it's good to keep it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaogoy
We will gradually modify the format of titles. "The Keyword section(in SQL and function) needed to be deleted. " This has been confirmed with simo.