Mysql执行SQL语句,特殊字符语法错误! 本帖最后由 saylerboxer 于 2009-07-11 15:44:21 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 特殊字符串可以用反引号` (键盘数字键1左边)来标明,mysql> create database `db-test`;Query OK, 1 row affected (0.42 sec)mysql> drop database `db-test`;Query OK, 0 rows affected (0.30 sec)mysql> mysql> drop database 'db-test';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 ''db-test'' at line 1mysql> 关于几个陌生的sql指令,实在找不到相关信息,有人知道不?! Group by 后如何保持原先的排序? 插入语句的小难题 linux下安装mysql(二进制包)的问题 触发器问题,上次提问已石沉大海 mysql恢复数据库 请问如何导出mysql的数据库?给分的…… MySQL有什么好处? MySQL的最新版本是多少 ,有什么改进,大家用了之后有什么感受,怎么解决事务处理的? 腾讯云ubuntu的mysql没法远程访问啊?怎么办 select count很影响性能吗? 数据库编码问题
Query OK, 1 row affected (0.42 sec)mysql> drop database `db-test`;
Query OK, 0 rows affected (0.30 sec)mysql>
mysql> drop database 'db-test';
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 ''db-test'' at line 1
mysql>