2013-10-17 45 views
0

我嘗試更新表,其中的OPC SIMULATIE:Configured Aliases.PLC1.RPM 價值,但後來我得到這個:
ODBC錯誤:您的SQL語法中有錯誤;

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' 

是否有人可以幫忙嗎?

回答

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' 
+0

我是這麼認爲的!但是真正的問題出現了,ODBC驅動程序以這種方式發送它。也許更新會有所幫助!感謝您的快速回答 – user2890367

+0

它的工作原理!謝謝 – user2890367

相關問題