gpt4 book ai didi

mysql - 操作数应包含 1 列 我在执行删除查询时收到此错误

转载 作者:行者123 更新时间:2023-11-29 19:35:14 25 4
gpt4 key购买 nike

这是我的 SQL 查询

delete FROM 
SubMaster_test1
where SubMasterId in (select *
from SubMaster_test1 where AgentId
not in (select distinct
introducer from SubMaster_test1
where introducer is not null))

我收到以下错误

[错误] 1241 - 操作数应包含 1 列

最佳答案

你应该只在“*”上写上“id”

delete FROM 
SubMaster_test1
where SubMasterId in (select SubMasterId
from SubMaster_test1 where AgentId
not in (select distinct
introducer from SubMaster_test1
where introducer is not null))

关于mysql - 操作数应包含 1 列 我在执行删除查询时收到此错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41586097/

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