| 5 | 1/1 | 返回列表 |
| 查看: 1041 | 回復: 3 | |||
| 當前只顯示滿足指定條件的回帖,點擊這里查看本話題的所有回帖 | |||
[交流]
以步長steptime比如5分鐘重復調取表中數據處理(含時間字段)出來處理咋寫?
|
|||
|
以步長steptime比如5分鐘重復調取表中數據處理(含時間字段)出來處理咋寫?下面代碼對嗎? endtime:=firsttime; for i:=1 to n do starttime:=endtime; endtime:=IncMinute(endtime,steptime); begin //查詢,處理數據 end; |

|
with table5 do begin k:=0; first; while not eof do begin k:=k+1; x[k]:=table5.fieldbyname('x').Value; y[k]:=table5.fieldbyname('y').Value; next; {x2:=table5.fieldbyname('x').Value; y2:=table5.fieldbyname('y').Value; dis:=sqr((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));} end;//end table5 while not eof do end;//end with table5 do //求max_k *sametimetable中的行數 query1.close; query1.SQL.clear; query1.SQL.add('select count(*) from sametimetable '); Query1.execsql; max_k:=query1.fields[0].asinteger; //求max_k S5:=0; //初始化S5 for l:=1 to max_k do begin for m:=2 to max_k do begin if l=m then continue; parter[l,m]:=sqrt(Power((y[m]-y[l]),2)- Power((x[m]-x[l]),2)); if parter[l,m]>9.26 then continue else S5:=S5+1; end; end;// for l:=1 to max_k do |

|
// ¿ªÊ¼Ñ­»·´¦Àí TimeEnd:=firsttime; TimeStart:=firsttime; for i:=1 to peroidup do TimeStart:=TimeEnd; TimeEnd:=IncMinute(TimeEnd,steptime); begin // ²éѯʱ¼ä¶ÎÊý¾Ýµ½ tempttable query1.Close; query1.Sql.clear; query1.sql.add('select * into tempttable from data1sector1 where'); query1.sql.add('ʱ¼ä > TimeStart'); query1.sql.add('and ʱ¼ä <= TimeEndt'); //#2013-08-13 00::01::18# query1.execsql; end; |


| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 求調劑 生物學 377分 +5 | zzll03 2026-03-31 | 5/250 |
|
|---|---|---|---|---|
|
[考研] 266分,求材料冶金能源化工等調劑 +8 | 哇呼哼呼哼 2026-03-27 | 10/500 |
|
|
[考研] 085600 295分求調劑 +13 | W55j 2026-03-30 | 15/750 |
|
|
[考研] 294分080500材料科學與工程求調劑 +9 | 柳溪邊 2026-03-26 | 9/450 |
|
|
[考研] 調劑求院校招收 +7 | 鶴鯨鴿 2026-03-28 | 7/350 |
|
|
[考研] 0856調劑 +6 | 曲聽筠 2026-03-30 | 6/300 |
|
|
[考研] 317求調劑 +8 | 十閑wx 2026-03-24 | 8/400 |
|
|
[考研] 材料化工340求調劑 +3 | jhx777 2026-03-30 | 3/150 |
|
|
[考研] 293求調劑 +3 | 末未mm 2026-03-30 | 5/250 |
|
|
[考研] 求調劑,一志愿 南京航空航天大學大學 ,080500材料科學與工程學碩 +6 | @taotao 2026-03-26 | 7/350 |
|
|
[考研] 材料與化工304求B區(qū)調劑 +4 | 邱gl 2026-03-26 | 7/350 |
|
|
[考研] 0856材料化工調劑 總分330 +14 | zhubinhao 2026-03-27 | 14/700 |
|
|
[考研] 調劑考研 +3 | 王杰一 2026-03-29 | 3/150 |
|
|
[考研]
|
y7czhao 2026-03-26 | 10/500 |
|
|
[考研] 材料277求調劑 +7 | min3 2026-03-24 | 7/350 |
|
|
[考研] 材料求調劑一志愿哈工大324 +7 | 閆旭東 2026-03-28 | 9/450 |
|
|
[考研] 085600,材料與化工321分調劑 +4 | 大饞小子 2026-03-27 | 6/300 |
|
|
[考研] 298調劑 +3 | jiyingjie123 2026-03-27 | 3/150 |
|
|
[考研] 調劑 +4 | 柚柚yoyo 2026-03-26 | 4/200 |
|
|
[考研] 347求調劑 +4 | L when 2026-03-25 | 4/200 |
|