请大家帮忙看看这句SQL语句有什么问题,执行提示错误

yhgfriend 2014-09-03 03:55:18
环境 MYSQL5.6

update cash set Balance=Balance- (select Amount from (select * from cash where CashIndex=299) as a),
where Code = (select Code from (select Code from cash where CashIndex=299) as b) and
TheTime > (select TheTime from ((select * from cash) as c) where CashIndex=299) ;

以上是一条SQL语句,分三行在终端里输入,提示有错误,请大家帮忙看一下怎么写才行
...全文
75 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
benluobo 2014-09-03
  • 打赏
  • 举报
回复
update cash set Balance=Balance- (select Amount from (select * from cash where CashIndex=299) as a), 这一句最后的 逗号去掉

56,687

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧