文章详情页
shell - mysql中update语句错误
浏览:192日期:2022-06-14 15:15:40
问题描述
使用shell操作mysql,用如下命令update
mysql -h10.134.72.72 -uroot -e 'use GalaxyConfig; UPDATE GalaxyGPPanda SET count=count+1205914; WHERE(time=’2017-02-27 18:00:00’ AND type=’pv’ AND service=’news’)'
结果报错:
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for theright syntax to use near ’WHERE(time=’2017-02-27 18:00:00’ AND type=’pv’ AND service=’news’)’ at line 1
请教各位这个错误是哪里啊?
问题解答
回答1:where 前面多了个分号啊
回答2:按照报错提示排查,你是想换行把;改成么?
相关文章:
1. docker start -a dockername 老是卡住,什么情况?2. docker内创建jenkins访问另一个容器下的服务器问题3. debian - docker依赖的aufs-tools源码哪里可以找到啊?4. docker images显示的镜像过多,狗眼被亮瞎了,怎么办?5. docker镜像push报错6. docker-machine添加一个已有的docker主机问题7. dockerfile - 为什么docker容器启动不了?8. macos - mac下docker如何设置代理9. 关于docker下的nginx压力测试10. nignx - docker内nginx 80端口被占用
排行榜

网公网安备