我试图运行下面的语句MYSQL插入:上的重复
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
有什么建议?
THX
删除'()',只使用'英语= 'DV',印度尼西亚= 'EV',日本=” fv'' – 2012-04-20 10:42:41