0

我尝试更新一个表,OPC SIMULATIE:Configured Aliases.PLC1.RPM 但我得到了这个值:

Executing ODBC update: update test set where test = OPC SIMULATIE:Configured Aliases.PLC1.RPM

ODBC Error: [[[MySQL][ODBC 3.51 Driver][mysqld-5.6.11]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 'where `test` = 'OPC SIMULATIE:Configured Aliases.PLC1.RPM'' at line 1 42000 1064]]
on: Could not ExecDirect: update test set  where `test` = 'OPC SIMULATIE:Configured Aliases.PLC1.RPM'

ODBC Error: [[[MySQL][ODBC 3.51 Driver][mysqld-5.6.11]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 'where `test` = 'OPC SIMULATIE:Configured Aliases.PLC1.RPM'' at line 1 42000 1064]]
on: update test set  where `test` = 'OPC SIMULATIE:Configured Aliases.PLC1.RPM'

有人可以帮忙吗?

4

1 回答 1

1

您尚未指定要更新的字段:

update test set where test = 'OPC SIMULATIE:Configured Aliases.PLC1.RPM'

应该有类似的东西:

update test set field='value' where test = 'OPC SIMULATIE:Configured Aliases.PLC1.RPM'
于 2013-10-17T12:20:07.440 回答