命令刪除資料表

  1. 刪除資料表 tbl。
    MariaDB root@(none):dyw> drop table tbl;
    You're about to run a destructive command.
    Do you want to proceed? (y/n): y
    Your call!
    Query OK, 0 rows affected
    Time: 0.113s
    
  2. 查看資料表,沒有任何資料表。
    MariaDB root@(none):dyw> show tables;
    +---------------+
    | Tables_in_dyw |
    +---------------+
    +---------------+
    
    0 rows in set
    Time: 0.021s
    
  3. 退出 mariadb。
    MariaDB root@(none):dyw> quit;
    Goodbye!