gpt4 book ai didi

mysql - 更新左连接查询帮助

转载 作者:行者123 更新时间:2023-11-29 02:36:04 26 4
gpt4 key购买 nike

我不知道如何做我想做的事。
希望在这个例子中展示了数据关系

UPDATE sym_entries_data_55'
SET value = '46.00'
WHERE (sym_entries_data_55.id = sym_entries_data_54.id)
AND (sym_entries_data_54.member_id = sym_entries_data_5.entry_id)
AND (sym_entries_data_5.username = 'namehere')

回答

UPDATE sym_entries_data_55, sym_entries_data_54, sym_entries_data_5
SET sym_entries_data_55.value = '52.00'
WHERE sym_entries_data_55.id = sym_entries_data_54.id
AND sym_entries_data_54.member_id = sym_entries_data_5.entry_id
AND sym_entries_data_5.username = 'namehere'

最佳答案

UPDATE sym_entries_data_55, sym_entries_data_54, sym_entries_data_5
SET sym_entries_data_55.value = '46.00'
WHERE sym_entries_data_55.id = sym_entries_data_54.id
AND sym_entries_data_54.member_id = sym_entries_data_5.entry_id
AND sym_entries_data_5.username = 'namehere'

关于mysql - 更新左连接查询帮助,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4949052/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com