没有见过这样的语句
left ,没有join ; t2.id=t1.id  前没有on ,没有where字句??

解决方案 »

  1.   

    select * from `table1` t1 LEFT join table2 on  t2.id=t1.id order by t2.order
    排序本身就耗资源,很难避免
      

  2.   

    RIGHT JOIN 不行。
    我现在的主要问题是要对两个表中都有字段需要进行排序。
    我尝试使用子查询,发现子查询(select id from t1)中的结果记录很大得时候,采用子查询得效率事很低得。
    如:select * from t2 where id in (select id from t1)
      

  3.   

    SELECT * FROM t1,t2 WHERE t1.id=t2.id 行嗎?
      

  4.   

    分开查好了,再用php合并数据(如果你需要并且愿意的话)