这样,我就可以动态地插入数据并部分更新一些列数据.有最新消息..。但是得到sql语法错误..。Cause:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
我有下面这段代码。我想使用来自变量数据的计算数据填充KPI_RESULTS表。变量数据接收不同的公式。例如( n1*n7)*100取决于工程师对KPI公式的定义。n1 -n!是列名。enter code here
set @s = Concat("select datetime , element NODE,",@data," RESULTS from loas");
INSERT INTO KPI_re