Usage of mysql exists and not extsts

SELECT  * FROM  me_account_site
  WHERE NOT EXISTS (SELECT * FROM  me_site
                WHERE me_account_site.siteId = me_site.siteId);
 
Note: There is a problem with the order of me_account_site and me_site. When the first position is me_account_site, the second position cannot be repeated, that is, crossed.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326403812&siteId=291194637
Recommended