select * from b where not exists( select 1 from a where a.name=b.name and a.no=b.no and a.times=b.times and a.date=b.date) SELECT * from B EXCEPT SELECT * from A;
SQL code: select * from tb except select * from ta
SQL code: select * from b where not exists(select 1 from a where name=b.name and no=a.no and times=a.times and [date]=t.[date])
select o_customer,o_price from orders having o_price >=avg(o_price) select o_customer,o_price from orders where o_price >=(select avg(o_price) from orders) ÎҸоõûÓÐÇø±ð°¡£¬ÔõôÔÚmysql»áÓÐ ......