Guest User

Untitled

a guest
Jan 24th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. UPDATE `assignments` SET `PlayerId`='45' WHERE `CampaignId`='3' AND `PlayerId`='2101'
  2. AND NOT EXISTS ( SELECT NULL FROM `assignments` WHERE `CampaignId`='3' AND `PlayerId`='2101' )
  3.  
  4. #1093 - Table 'assignments' is specified twice, both as a target for 'UPDATE' and as a separate source for data
  5.  
  6. ON DUPLICATE KEY DELETE
Add Comment
Please, Sign In to add comment