Inner join inverse Php mysql

岁酱吖の 提交于 2021-02-11 08:39:25

问题


I have two tables master_domain_list and temporary_domain_list. master_domain_list contains a list with columns for the email ID and domain name. temporary_domain_list also contains the domain column.

I want to filter temporary_domain_list to show all domain names which are not present in master_domain_list.

I tried the following code (inner join inverse) but it's giving the whole list of domains from temporary_domain_list without removing the domains in master_domain_list.

$result1=mysqli_query($cons, "
      SELECT domain 
      FROM temporary_domain_list 
      WHERE domain NOT IN  (SELECT domain 
      FROM master_domain_list)
      ");

来源:https://stackoverflow.com/questions/38343898/inner-join-inverse-php-mysql

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!