SELECT distinct supplier_id, min(evidence_date) as evidence_date FROM TD_SUPPLIER_EVIDENCE_INFO where VERIFIER = 'gaoyinghui' group by supplier_id order by evidence_date desc;…
SELECT a.* FROM product_template a INNER JOIN (SELECT p_id,MAX(ID) as max_id FROM product_template where state >= 1 GROUP BY p_id DESC ) b ON a.p_id=b.p_id AND a.ID=b.max_id where a.p_id in ('207','229','46')…
首先,我们定义一个Student类来测试. public class Student { public int ID { get; set; } public string Name { get; set; } public int Age { get; set; } } List<Student> data = new List<Student> { ,Name=}, ,Name=}, ,Name=}, ,Name=}, ,Name=}, ,Name=} }; 在这样一个数据中.…