| 查看: 1056 | 回复: 3 | |||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | |||
[交流]
以步长steptime比如5分钟重复调取表中数据处理(含时间字段)出来处理咋写?
|
|||
|
以步长steptime比如5分钟重复调取表中数据处理(含时间字段)出来处理咋写?下面代码对吗? endtime:=firsttime; for i:=1 to n do starttime:=endtime; endtime:=IncMinute(endtime,steptime); begin //查询,处理数据 end; |
» 猜你喜欢
申博自荐
已经有6人回复
320求调剂
已经有6人回复
期刊推荐
已经有5人回复
有没有接收比较快的sci期刊呀,最好在一个月之内的,研三孩子求毕业
已经有7人回复
又一批高校组建人工智能学院 师资行吗 不是骗人吗
已经有4人回复
297,工科调剂?河南农业大学本科
已经有15人回复
337求调剂
已经有3人回复
申博/考博
已经有5人回复
申博
已经有3人回复
湖南大学刘巧玲课题组2026年第二批次博士研究生招生信息
已经有5人回复

|
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 |

4楼2013-10-15 21:46:11
|
// ¿ªÊ¼Ñ­»·´¦Àí 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; |

2楼2013-10-11 02:05:37

3楼2013-10-15 10:14:55













回复此楼
50