本帖最后由 cxc3787582 于 2012-09-28 17:44:19 编辑

解决方案 »

  1.   

    select * from (
    select name as n ,null as t ,id ,sex from a
    union all
    select lastname,titile,tid,null from b
    ) t
    limit 30
      

  2.   

    将2张表UNION ALL即可需要用 LIMIT 分页?详细说明
      

  3.   

    SELECT * FROM 
    (SELECT name as n,null as t,id ,sex FROM a
    UNION ALL
     SELECT lastname,title,tid,null FROM b
    )m
    LIMIT 30;
      

  4.   

    select * from (
    select name as n ,null as t ,id ,sex from a
    union all
    select lastname,titile,tid,null from b
    ) t
    limit 30,10;