0

我有这个 sql 查询,需要将其更改为 rails 控制器

SELECT * FROM ( SELECT vendorName,startTime,endTime,appsImported,result,logfile 
             FROM appmall_dev.data_imports d order by startTime desc)as t 
             group by t.vendorNAme;
4

1 回答 1

1
DataImport.select("vendorName,startTime,endTime,appsImported,
                   result,logfile").group("vendorName").order("startTime desc")
于 2012-12-20T06:58:19.783 回答