Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion sql-statements/sql-statement-create-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,13 @@ ERROR 1105 (HY000): insert into view v1 is not supported now.

## MySQL compatibility

* Views in TiDB are not currently insertable or updatable.
* Currently, any view in TiDB cannot be inserted or updated (that is, `INSERT VIEW` and `UPDATE VIEW` are not supported). `WITH CHECK OPTION` is only syntactically compatible but does not take effect.
* Currently, the view in TiDB does not support `ALTER VIEW`, but you can use `CREATE OR REPLACE` instead.
* Currently, the `ALGORITHM` field is only syntactically compatible in TiDB but does not take effect. TiDB currently only supports the MERGE algorithm.

## See also

* [DROP VIEW](/sql-statements/sql-statement-drop-view.md)
* [CREATE TABLE](/sql-statements/sql-statement-create-table.md)
* [SHOW CREATE TABLE](/sql-statements/sql-statement-show-create-table.md)
* [DROP TABLE](/sql-statements/sql-statement-drop-table.md)
3 changes: 0 additions & 3 deletions sql-statements/sql-statement-drop-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ aliases: ['/docs/dev/reference/sql/statements/drop-table/']

This statement drops a table from the currently selected database. An error is returned if the table does not exist, unless the `IF EXISTS` modifier is used.

By design `DROP TABLE` will also drop views, as they share the same namespace as tables.

## Synopsis

**DropTableStmt:**
Expand Down Expand Up @@ -52,7 +50,6 @@ Query OK, 0 rows affected (0.23 sec)

## See also

* [DROP VIEW](/sql-statements/sql-statement-drop-view.md)
* [CREATE TABLE](/sql-statements/sql-statement-create-table.md)
* [SHOW CREATE TABLE](/sql-statements/sql-statement-show-create-table.md)
* [SHOW TABLES](/sql-statements/sql-statement-show-tables.md)
2 changes: 1 addition & 1 deletion sql-statements/sql-statement-drop-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ This statement is understood to be fully compatible with MySQL. Any compatibilit

## See also

* [DROP TABLE](/sql-statements/sql-statement-drop-table.md)
* [CREATE VIEW](/sql-statements/sql-statement-create-view.md)
* [DROP TABLE](/sql-statements/sql-statement-drop-table.md)