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

Mysql 操作数应包含1列我在执行删除查询时遇到此错误,mysql,Mysql,这是我的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)) 我有以下错误 [Err]1241-操作数应包含1列您应仅在其上写入id* delete FROM

这是我的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))
我有以下错误


[Err]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))

[Err]1093可能重复-无法在FROM子句中为更新指定目标表'SubMaster_test1'。。。获取此错误我知道。创建一个只有一个id为的列的临时表,并将此子空间插入其中,然后使用此表从SubMaster_test1中删除数据insert到temp select SubMaster id中,其中AgentId不在select distinct Introductor from SubMaster_test1中,其中Introductor不为nullok我已创建临时表并插入数据。。。下一步是什么?从SubMaster_test1中删除,其中SubMaster id位于从temp选择id中