INSERT INTO GameScoreTotal (
`GameName`
, `OverallScore`
, `GraphicsScore`
, `StoryScore`
, `GameplayScore`
, `TimeScore`
)
VALUES (
'HomeFront'
, '1'
, '1'
, '1'
, '1'
, '5'
)
WHERE GameName = 'HomeFront'
ON DUPLICATE KEY
UPDATE OverallScoreTotal = OverallScoreTotal + '1'
, GraphicsTotal = GraphicsTotal + '1'
, StoryTotal = StoryTotal + '1'
, GameplayTotal = GameplayTotal + '1'
, TimeTotal = TimeTotal + '1'
, RatingCount = RatingCount + 1;
我正在尝试更新 GameScoreTotal 如果我们有其他内容,请插入。有任何想法吗?