INSERT INTO TR_HK_RC_TEMPERATURE2 (HWINSTANCEID, KPIITEMID, BRANCHID, COLLECTTIME, KPINUMBERVALUE, INSERTTIME)
select scadadeviceid hwinstanceid, kpiitemid ,channelid * 64 + sensorid+1 branchid,SYSDATE, dbms_random.value(20,40),SYSDATE from TR_R_SRACKMAPPING a,(select deviceid from dt_devices where devicetoptypeid = 6) b where a.deviceid = b.deviceid and kpiitemid = 42;
INSERT INTO TR_HK_RC_TEMPERATURE6 (HWINSTANCEID, KPIITEMID, BRANCHID, COLLECTTIME, KPINUMBERVALUE, INSERTTIME)
select scadadeviceid hwinstanceid, kpiitemid ,channelid * 64 + sensorid+1 branchid,SYSDATE, dbms_random.value(20,40),SYSDATE from TR_R_SRACKMAPPING a,(select deviceid from dt_devices where devicetoptypeid = 6) b where a.deviceid = b.deviceid and kpiitemid = 46;
/
commit;
exit;
2.创建sql.bat文件,
sqlplus cmscrfid_sit/cmscrfid_sit@orcl @test.sql
3.创建vbs文件,用于隐藏窗口。
Set ws = CreateObject("Wscript.Shell")
ws.run "cmd /c sql.bat",vbhide
创建任务,每分钟一次:
schtasks /create /sc minute /mo 1 /tn "InertTempratureData" /tr c:/runbat.vbs
删除任务:
schtasks /delete /tn "InertTempratureData"
下载说明
☉本站所有源码和资源均由站长亲自测试-绝对保证都可以架设,运营!
☉如源码和资源有损坏或所有链接均不能下载,请告知管理员,
☉本站软件和源码大部分为站长独资,资源购买和收集,放心下载!
☉唯一站长QQ:1004003180 [人格担保-本站注重诚信!]
☉购买建议E-mail:1004003180@qq.com 源码收购 E-mail:1004003180@qq.com
☉本站文件解压密码 【文章内都自带解压密码,每个密码不同!】