$a = M('user') ->union('SELECT id,name FROM hb_user2 limit 0,8') ->field('id,name') ->select();
1.注意limit分页位置
2 两表需要的字段要对应
3 user有5条数据 user2有10条 查出1表5条2表3条