DROP VIEW

    1. CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL);
    1. Query OK, 0 rows affected (0.11 sec)
    1. INSERT INTO t1 (c1) VALUES (1),(2),(3),(4),(5);
    1. Query OK, 5 rows affected (0.03 sec)
    2. Records: 5 Duplicates: 0 Warnings: 0
    1. Query OK, 0 rows affected (0.11 sec)
    1. SELECT * FROM t1;
    1. | id | c1 |
    2. +----+----+
    3. | 2 | 2 |
    4. | 3 | 3 |
    5. | 4 | 4 |
    6. | 5 | 5 |
    7. +----+----+
    8. 5 rows in set (0.00 sec)
    1. SELECT * FROM v1;
    1. DROP VIEW v1;
      1. SELECT * FROM t1;
      1. | id | c1 |
      2. +----+----+
      3. | 1 | 1 |
      4. | 2 | 2 |
      5. | 3 | 3 |
      6. | 4 | 4 |
      7. | 5 | 5 |
      8. +----+----+
      9. 5 rows in set (0.00 sec)

      DROP VIEW 语句与 MySQL 完全兼容。如发现任何兼容性差异,请在 GitHub 上提交 。