3

我对 mysql 5.1.56 有一个查询:

select * from team_member_accounts where node = 33136

...这正好返回一行。但是,以下查询错误Subquery returns more than 1 row

update team_member_accounts
set fee_remaining = 0,
    loan_account_balance = 35000,
    reimbursable_amount = 0, 
    reimbursed_amount = 0
where node = 33136

嗯什么?什么子查询?它怎么不止一排?

4

2 回答 2

1

该表可能有一个触发器。

于 2013-12-13T14:42:34.630 回答
0

可能会尝试这个更新 team_member_accounts 设置 fee_remaining = 0,loan_account_balance = 35000,reimbursable_amount = 0,reimbursable_amount = 0 where node = (SELECT DISTINCT(NODE) FROM team_member_accounts where node = 33136)

如果它不起作用,我觉得你的桌子很奇怪

于 2013-12-13T02:59:32.853 回答