0

For example, when I go to the mysql command line and do:

mysql> create database `#mysql#testdb`;

and try:

mysql> show databases;

I only get a db named "testdb" and NOT "#mysql#testdb".

Any idea what's wrong here?

4

2 回答 2

3

您使用特殊字符,如#(sql 注释)。如果可以避免,请使用下划线“_”而不是 #。否则,请查看此页面,它应该可以帮助您使用特殊字符。

于 2013-10-10T18:42:39.040 回答
2

#是一个 mysql 注释符号。基本上,您正在注释掉mysql。

于 2013-10-10T18:44:18.453 回答