On Fri, 5 Apr 2013 20:03:48 +0000 (UTC), Salvatore
<s...@yojimbo.hack.invalid> wrote:
>On 2013-04-05, BobMCT <
r.mar...@fdcx.net> wrote:
>> Here is that statement with actual field names and data values in
>> place:
>>
>> INSERT INTO history
>> (_stcd, _gameid, _ddte, _stat, _dow, _wn, _soz, _pom)
>> VALUES ('AZ', '22', '130401', ' ', '1', '00170023', '3', '6')
>> ON DUPLICATE KEY UPDATE history SET
>> (_dow = '1', _wn = '00170023', _soz = '3', _pom = '6')
>
>The correct syntax is:
>
>INSERT INTO table (fields) VALUES (values)
>ON DUPLICATE KEY UPDATE col = value, ...
>
>
http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html
Thank you Salvatore. Removed the words "history SET" and it worked as
expected. And I was using the same reference page you specified, too.