选择其他表中不存在的行。
table name column names ----------- ------------------------ login_log ip | etc. ip_location ip | location | hostname | etc.
login_log
ip_location
.
SELECT login_log.ip FROM login_log WHERE NOT EXIST (SELECT ip_location.ip FROM ip_location WHERE login_log.ip = ip_location.ip)
ERROR: syntax error at or near "SELECT"LINE 3: WHERE NOT EXIST (SELECT ip_location.ip`
守候你守候我
相关分类