INNER JOIN UPDATE 挂在发送数据上

发布于 2025-01-18 04:24:37 字数 265 浏览 4 评论 0原文

尝试根据两个条件从另一个表中的列更新一个表。我已经尝试了许多版本,但这是我目前正在尝试的,它只是悬挂。当我在运行时检查表时,我没有看到任何更新发生。我的语法有问题吗?谢谢!

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

娇妻 2025-01-25 04:24:37

我制作了ticker 和theticker 非唯一索引,并且查询工作没有问题。

I made ticker and theticker non-unique indexes and the query worked without a problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文