SELECT a.* FROM newtrsinfocsv a LEFT JOIN (SELECT * FROM newtrsinfocsv WHERE goodsType LIKE "%虚拟%") b ON a.id=b.id WHERE b.id IS NULL;