Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Table 1
- itemId : int
- userId1 : int
- userId2 : int
- WHERE itemId = myId AND (userId1 = myId1 OR userId2 = myId1) AND (userId1 = myId2 OR userId2 = myId2)
- ... WHERE itemId = ? AND (userId1 = ? OR userId2 = ?) AND (userId1 = ? OR userId2 = ?)
- ... 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