gpt4 book ai didi

mysql - ODBC 错误 :You have an error in your SQL syntax;

转载 作者:行者123 更新时间:2023-11-29 13:31:19 24 4
gpt4 key购买 nike

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

执行 ODBC 更新:更新测试集,其中 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'

有人可以帮忙吗?

最佳答案

您尚未指定要更新哪些字段:

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

应该有这样的内容:

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

关于mysql - ODBC 错误 :You have an error in your SQL syntax;,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19426537/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com