【发布时间】:2023-03-19 23:55:01
【问题描述】:
我正在尝试运行以下语句:
INSERT INTO table (
as,
ad
,af,
ag,
ah,
aj
)
VALUES (
'a',
'b',
'c',
'd',
'e',
'f'
)
ON DUPLICATE KEY UPDATE (
aj='dv',
ah='ev',
ag='fv'
);
并得到以下错误:
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 '(ag='dv',ah='ev',ah='fv')'
at line 3
有什么建议吗?
谢谢
【问题讨论】:
-
移除
(),仅使用english='dv',indonesian='ev',japanese='fv'
标签: mysql