INNER JOIN UPDATE 挂在发送数据上
尝试根据两个条件从另一个表中的列更新一个表。我已经尝试了许多版本,但这是我目前正在尝试的,它只是悬挂。当我在运行时检查表时,我没有看到任何更新发生。我的语法有问题吗?谢谢!
UPDATE earningsdates e
INNER JOIN actualmove a
ON e.ticker = a.theticker AND e.exactearningsdate = a.realearningsdate
SET e.theamove = a.themove;
Trying to update one table from a column in another table based on two conditions. I've tried many version of this but this is what I'm currently trying and it just hangs. When I check the table while running, I'm not seeing any updating occurring. Is there something wrong with my syntax? Thanks!
UPDATE earningsdates e
INNER JOIN actualmove a
ON e.ticker = a.theticker AND e.exactearningsdate = a.realearningsdate
SET e.theamove = a.themove;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我制作了ticker 和theticker 非唯一索引,并且查询工作没有问题。
I made ticker and theticker non-unique indexes and the query worked without a problem.