Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Table 1
  2.  
  3. itemId : int
  4. userId1 : int
  5. userId2 : int
  6.  
  7. WHERE itemId = myId AND (userId1 = myId1 OR userId2 = myId1) AND (userId1 = myId2 OR userId2 = myId2)
  8.  
  9. ... WHERE itemId = ? AND (userId1 = ? OR userId2 = ?) AND (userId1 = ? OR userId2 = ?)
  10.  
  11. ... WHERE itemId = ? AND (userId1 = ? OR userId2 = ?) AND (userId1 = ? OR userId2 = ?)", new String[]{myId, myId1, myId1, myId2, myId2};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement