2016-10-04 70 views

回答

0

如果最多有兩行,這將工作

select Srn, SrnPrs,sDayDate,max(sTime) as sTime1, min(sTime) as sTime2 from table 
group by Srn, SrnPrs,sDayDate 
0

試試這個:

SELECT Sn,sDayDate, GROUP_CONCAT(string SEPARATOR ' ') FROM table GROUP BY Sn; 
+2

你怎麼知道他在使用MySQL? –

相關問題