select a.id,a.xxa,b.mes from (select * from( select * from test order by time desc) a group by xxa,mes) a cross join (select * from ( select * from test order by time desc) b group by xxa,mes) b
update A a, (select min(c.pic) as pic, b.goods_id as goods_id from B b, C c where b.cat_id=c.cat_id GROUP BY b.goods_id) bc set a.pic = bc.pic where a.goods_id=bc.goods_id索引随便加吧,主键都加
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)