Mysql
 sql >> Database >  >> RDS >> Mysql

Alternativa a tranne in MySQL

Potresti usare NOT IN

SELECT * 
FROM Tab1
WHERE id  NOT IN (
    SELECT id 
    FROM Tab1 
    WHERE int_attribute_of_Tab1>0
)