【发布时间】:2016-10-19 22:51:09
【问题描述】:
目标
我正在尝试截断数据库中的一张表。
详情
数据库名称:站点本地 表名:cloud_security
我试过了
mysql -u root -p'' -h localhost site-local -e "truncate table site-local.cloud_securities"
结果
输入密码后,我不断得到
ERROR 1064 (42000) at line 1: 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 '-local.cloud_securities' at line 1
对此的任何提示/建议将不胜感激!
【问题讨论】:
标签: mysql linux database command-line-interface