1.改变list中某个元素的值 public class tb_SensorRecordModel { public int ID { get; set; } public decimal Value1 { get; set; } } List<tb_SensorRecordModel> list = new List<tb_SensorRecordModel>(); list.Add(, Value1 = }); list.Add(, Value1 = }); list.Add(
一 . SELECT * FROM (SELECT A.*, rownum AS RN FROM (SELECT (@rownum := @rownum + 1) AS rownum, B.LL11, B.KS01 FROM TA_HISTORY B,(SELECT @rownum := 0) r WHERE 1 = 1 AND B.KS01 > '2017-10-8 9:51' AND B.KS01 < '2017-11-8 9:51' ORDER BY B.KS01 DESC) A ) C