日期:2014-05-16 浏览次数:20716 次
select * from B t where not exists(select 1 from A b where t.c_id=b.c_id and t.id<b.id);
------解决方案--------------------
mysql> select mm.c_id ,aa.name,mm.title from (select bb.* from B bb where not ex
ists (select 1 from B where bb.c_id = c_id and bb.id<id)) mm ,A aa where mm.c_i
d = aa.c_id;