mysql - 在 Mysql 中删除/删除我的数据库时需要帮助
问题描述
我有一个名为“sql-mystery”的数据库。我无法使用 -
DROP DATABASE sql-mystery;
我收到错误,例如-
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 'sql-mystery' at line 1
我错过了什么?
解决方案
尝试使用
DROP DATABASE `sql-mystery`;
推荐阅读
- c++ - 在 Qt 5 中继续使用“插槽”标记是否值得?
- php - 检查客户完成的订单问题
- ruby-on-rails - Rails:在控制器操作导致“缺少此请求格式和变体的模板”错误后渲染 JSON
- java - 如何使用 Facebook 的 FacebookSDK 和其他平台的 Intents 共享内容?
- c# - 有没有办法在运行时将泛型类型设置为 Blazor 组件?
- php - 内存消耗过多,PHP 使用大约 70mb 的 ram
- swift - SwiftUI - 在视图中显示从 Firebase 获取的数据?
- android - 在较新版本的 Android 中,按钮单击在小部件中不起作用
- javascript - lodash:仅深度复制数组中的几个属性
- python - 代理通信中的铁锹,如何根据发件人代理做不同的事情?