恭喜,你发布的帖子
发布于 2022-03-23 11:49:44
3楼
#tpSQLText := 'insert into testPLC values(';
#tpSQLText := CONCAT(IN1 := #tpSQLText, IN2 := REAL_TO_STRING("Tag_3"));
#tpSQLText := CONCAT(IN1 := #tpSQLText, IN2 := ',');
#tpSQLText := CONCAT(IN1 := #tpSQLText, IN2 := REAL_TO_STRING("Tag_3"));
#tpSQLText := CONCAT(IN1 := #tpSQLText, IN2 := ',');
#tpSQLText := CONCAT(IN1 := #tpSQLText, IN2 := REAL_TO_STRING("Tag_3"));
#tpSQLText := CONCAT(IN1 := #tpSQLText, IN2 := ')');
"SQL_DB".SqlCommandsList[3] := #tpSQLText;
测试了下写数据库,没有问题啊。你的变量类型定义正确吗,' , ( ) ; 等符号有漏掉吗?
请填写推广理由:
分享
只看
楼主