牛骨文教育服务平台(让学习变的简单)
博文笔记

删除特殊字符.的数据库

创建时间:2013-02-20 投稿人: 浏览次数:1414

删除特殊字符的数据库

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| ichaoxing.com      |
| mysql              |
| performance_schema |
| test               |
+--------------------+
5 rows in set (0.00 sec)

 

需要删除ichaoxing.com      | 数据库

mysql> drop database ichaoxing.com;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ".com" at line 1

 

正确删除方法

mysql> drop database `ichaoxing.com`;
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql>


 

阅读更多
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。