Created
March 22, 2019 11:57
-
-
Save ayuLiao/f79e8892c9a610f5e6bf6ae028ddaccc to your computer and use it in GitHub Desktop.
sql删除数据库
sql删除数据表
sql删除数据
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
删除名为 xhkdb的数据库: | |
mysql> drop database xhkdb; | |
mysql> drop database if exists drop_database; | |
Query OK, 0 rows affected, 1 warning (0.00 sec) | |
删除MySQL数据表的通用语法: | |
DROP TABLE table_name ; | |
mysql> DROP TABLE runoob_tbl | |
Query OK, 0 rows affected (0.8 sec) | |
DELETE FROM 命令来删除 MySQL 数据表中的记录。 | |
DELETE FROM table_name [WHERE Clause] | |
mysql> DELETE FROM runoob_tbl WHERE runoob_id=3; | |
Query OK, 1 row affected (0.23 sec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment