组态王连接 mysql数据库_组态王连接数据库
SQLConnect(DeviceID,"dsn=MineMonitoringDBSource;uid=;pwd=");floatAyear;floatAmonth;floatAday;Ayear=ADate.Year;Amonth=ADate.Month;Aday=ADate.Day;longx;longy;longRow;longSt...SQLConnect( DeviceID, "dsn=
SQLConnect(DeviceID,"dsn=MineMonitoringDBSource;uid=;pwd=");floatAyear;floatAmonth;floatAday;Ayear=ADate.Year;Amonth=ADate.Month;Aday=ADate.Day;longx;longy;longRow;longSt...
SQLConnect( DeviceID, "dsn=MineMonitoringDBSource;uid=;pwd=");
float Ayear;
float Amonth;
float Aday;
Ayear=ADate.Year;
Amonth=ADate.Month;
Aday=ADate.Day;
long x;
long y;
long Row;
long StartTime;
string temp;
temp=StrFromInt(Ayear,10);
if(Amonth<10)
temp=temp+"-0"+StrFromInt(Amonth,10);
else
temp=temp+"-"+StrFromInt(Amonth,10);
if(Aday<10)
temp=temp+"-0"+StrFromInt(Aday,10);
else
temp=temp+"-"+StrFromInt(Aday,10);
\\本站点\选择日期=temp;
ReportSetCellString("一号风机",2,2,temp);//填写日期
StartTime=HTConvertTime(Ayear,Amonth,Aday,0,0,0);//将年月日转换成以秒为单位的长整型
ReportSetHistData("一号风机","\\本站点\时间",StartTime,600,"a5:a150");
ReportSetHistData("一号风机","\\本站点\风速",StartTime,600,"b5:b150");
ReportSetHistData("一号风机","\\本站点\风量",StartTime,600,"c5:c150");
ReportSetHistData("一号风机","\\本站点\负压",StartTime,600,"d5:d150");
ReportSetHistData("一号风机","\\本站点\功率",StartTime,600,"e5:e150");
请问这个函数ReportSetHistData什么意思 就这样就能把数据取出来吗
怎么没有关联到表啊
展开
DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。
更多推荐


所有评论(0)