MySQL Getting around error 1093

后端 未结 5 1023
伪装坚强ぢ
伪装坚强ぢ 2020-12-07 03:21

Error 1093 states that you can\'t UPDATE or DELETE using a subquery if your subquery queries the table you are deleting from.

So you can\'t do

delete         


        
5条回答
  •  北海茫月
    2020-12-07 03:47

    Currently, you cannot delete from a table and select from the same table in a subquery - details

    You just cannot cannot specify target table for delete

    one of my workaround : MySQL DELETE FROM with subquery as condition

提交回复
热议问题