2条回答 默认 最新
- little_how 2016-04-25 07:51关注
mysql的实现:
insert into zongbiao(id, name ,vd,co2,wendu,time) select t1.id,t1.name,t1.vd,t2.co2,t2.wendu,t2.time from biao1 t1 join biao2 t2 on(t1.id=t2.id)
order by t2.time desc limit 1;解决 无用评论 打赏 举报
mysql的实现:
insert into zongbiao(id, name ,vd,co2,wendu,time) select t1.id,t1.name,t1.vd,t2.co2,t2.wendu,t2.time from biao1 t1 join biao2 t2 on(t1.id=t2.id)
order by t2.time desc limit 1;