本帖最后由 saylerboxer 于 2009-07-11 15:44:21 编辑

解决方案 »

  1.   

    特殊字符串可以用反引号` (键盘数字键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>
      

  2.   


    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>