Chinaunix首页 | 论坛 | 博客
  • 博客访问: 763477
  • 博文数量: 99
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1163
  • 用 户 组: 普通用户
  • 注册时间: 2016-09-22 09:50
个人简介

一个守望数据库的老菜鸟

文章分类

全部博文(99)

文章存档

2019年(21)

2018年(17)

2017年(37)

2016年(24)

我的朋友

分类: Mysql/postgreSQL

2017-07-05 10:12:23

博客文章除注明转载外,均为原创。转载请注明出处。
本文链接地址:http://blog.chinaunix.net/uid-31396856-id-5767191.html


mysql> show tables like 'crmcs_information_dk_1%';
+----------------------------------------+
| Tables_in_crmdb ('crmcs_information_dk_1%) |
+----------------------------------------+
| 'crmcs_information_dk_12-17                 |
+----------------------------------------+
1 row in set (0.00 sec)

mysql> drop table crmcs_information_dk_12-17;
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 '-17' at line 1
报错信息:1064,含有"-"

处理方法:使用`xxxx`将相关名称引用(!左边键)
mysql> drop table `crmcs_information_dk_12-17`;
Query OK, 0 rows affected (0.02 sec)

---The end

阅读(1748) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~