SELECT distinct t2.tid,* FROM table1 t1 LEFT JOIN table2 t2 ON t1.tid=t2.tid; 或者 SELECT * FROM table1 t1 LEFT JOIN table2 t2 ON t1.tid=t2.tid group by t2.tid
你试试看看好使不,,我也没试过
热心网友时间:2022-04-09 23:32
SELECT * FROM table1 t1 LEFT JOIN table2 t2 ON t1.tid=t2.tid group by t2.tid ;