1.记得之前的xp系统是可以的,现在win7的不知道为什么不行;
2.查了一下在线文档:……有关合法数据库名称的规定列于9.2节,“数据库、表、索引、列和别名”。
……数据库 :目录名允许的任何字符,不包括‘/’、‘\’或者‘。’----------------
mysql> create database p-pet;
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 '-pet'
at line 1
mysql> create database ppet;
Query OK, 1 row affected (0.27 sec)mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| ppet |
| test |
+--------------------+
5 rows in set (1.30 sec)
mysql数据库名字
2.查了一下在线文档:……有关合法数据库名称的规定列于9.2节,“数据库、表、索引、列和别名”。
……数据库 :目录名允许的任何字符,不包括‘/’、‘\’或者‘。’----------------
mysql> create database p-pet;
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 '-pet'
at line 1
mysql> create database ppet;
Query OK, 1 row affected (0.27 sec)mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| ppet |
| test |
+--------------------+
5 rows in set (1.30 sec)
mysql数据库名字
解决方案 »
- 为什么我在name字段映射里设置了unique="true",可是不起作用?
- 分页问题
- 工作流QQ群:6495887 欢迎加入
- 关于spring IDE的问题,请高手指教,谢谢!
- FRAME中执行.do的问题
- 如何截获页面请求所返回的HTM内容
- tomcat不够稳定吗?
- 努力学习idea插件开发,想开发个spring的插件。
- 共同翻译:Designing Enterprise Applications with the J2EETM Platform,第二版?
- 大神们帮忙解答下添加在hashset中的元素为什么要实现hashcode和equals方法
- 求思路webservice管理多个配置文件
- 关于PreparedStatement做查询时遇到的bug
$和_用的较多,如果是SQL语句建表的话你可以加个""试试
如果使用navicat 工具的话 不用“”便可